GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
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. More...
 

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
Mappointer to vector map
tx,typoint coordinates
[out]tzz-coordinate of point
[out]angleangle
[out]slopeslope
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 b, G_debug(), Vect_find_area(), Vect_get_area_points(), Vect_new_line_struct(), and y.