Functions

tin.c File Reference

Vector library - TIN. More...

#include <grass/Vect.h>
Include dependency graph for tin.c:

Go to the source code of this file.

Functions

int Vect_tin_get_z (struct Map_info *Map, double tx, double ty, double *tz, double *angle, double *slope)
 Calculates z coordinate for point from TIN.

Detailed Description

Vector library - TIN.

Higher level functions for reading/writing/manipulating vectors.

(C) 2001-2008 by the GRASS Development Team

This program is free software under the GNU General Public License (>=v2). Read the file COPYING that comes with GRASS for details.

Author:
Radim Blazek
Date:
2001

Definition in file tin.c.


Function Documentation

int Vect_tin_get_z ( struct Map_info *  Map,
double  tx,
double  ty,
double *  tz,
double *  angle,
double *  slope 
)

Calculates z coordinate for point from TIN.

Parameters:
Map pointer to vector map
tx,ty point coordinates
[out] tz z-coordinate of point
[out] angle angle
[out] slope slope
Returns:
1 on success,
0 point is not in area,
-1 area has not 4 points or has island

Definition at line 36 of file tin.c.

References Vect_find_area(), Vect_get_area_points(), and Vect_new_line_struct().