GRASS GIS 7 Programmer's Manual  7.5.svn(2018)-r73120
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
diglib/poly.c File Reference
#include <math.h>
#include <grass/vector.h>
Include dependency graph for diglib/poly.c:

Go to the source code of this file.

Macros

#define HUGE_VAL   9999999999999.0
 

Functions

int dig_get_poly_points (int n_lines, struct line_pnts **LPoints, int *direction, struct line_pnts *BPoints)
 
int dig_find_area_poly (struct line_pnts *Points, double *totalarea)
 
double dig_find_poly_orientation (struct line_pnts *Points)
 

Macro Definition Documentation

#define HUGE_VAL   9999999999999.0

Definition at line 24 of file diglib/poly.c.

Function Documentation

int dig_find_area_poly ( struct line_pnts Points,
double *  totalarea 
)

Definition at line 100 of file diglib/poly.c.

References line_pnts::n_points, x, line_pnts::x, and line_pnts::y.

Referenced by Vect_build_line_area(), and Vect_isle_find_area().

double dig_find_poly_orientation ( struct line_pnts Points)

Definition at line 139 of file diglib/poly.c.

References line_pnts::n_points, x, line_pnts::x, and line_pnts::y.

int dig_get_poly_points ( int  n_lines,
struct line_pnts **  LPoints,
int direction,
struct line_pnts BPoints 
)

Definition at line 37 of file diglib/poly.c.

References dig_alloc_points(), line_pnts::n_points, line_pnts::x, and line_pnts::y.