GRASS GIS 7 Programmer's Manual  7.5.svn(2017)-r71933
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
tin.c File Reference

Vector library - TIN. More...

#include <grass/vector.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-2009 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

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 32 of file tin.c.

References Plus_head::Area, b, G_debug(), P_area::n_isles, line_pnts::n_points, Map_info::plus, Vect_find_area(), Vect_get_area_points(), Vect_new_line_struct(), x, line_pnts::x, line_pnts::y, and line_pnts::z.