|
GRASS Programmer's Manual
6.5.svn(2014)-r66266
|
Vector library - nearest, adjust, parallel lines. More...
#include <stdlib.h>#include <math.h>#include <grass/Vect.h>#include <grass/gis.h>
Go to the source code of this file.
Macros | |
| #define | LENGTH(DX, DY) ( sqrt( (DX*DX)+(DY*DY) ) ) |
| #define | PI M_PI |
| #define | D_MULT 0.99999999 /* distance multiplier for point_in_buf() */ |
Functions | |
| void | Vect_line_parallel (struct line_pnts *InPoints, double distance, double tolerance, int rm_end, struct line_pnts *OutPoints) |
| Create parrallel line. More... | |
| void | Vect_line_buffer (struct line_pnts *InPoints, double distance, double tolerance, struct line_pnts *OutPoints) |
| Create buffer around the line line. More... | |
Vector library - nearest, adjust, parallel lines.
Higher level functions for reading/writing/manipulating vectors.
(C) 2001-2011 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.
Definition in file buffer.c.
| #define D_MULT 0.99999999 /* distance multiplier for point_in_buf() */ |
Definition at line 63 of file buffer.c.
Referenced by Vect_line_buffer().
| #define PI M_PI |
Definition at line 62 of file buffer.c.
Referenced by Vect_line_buffer().
| void Vect_line_buffer | ( | struct line_pnts * | InPoints, |
| double | distance, | ||
| double | tolerance, | ||
| struct line_pnts * | OutPoints | ||
| ) |
Create buffer around the line line.
Buffer is closed counter clockwise polygon. Warning: output line may contain loops!
| InPoints | input line | |
| distance | create buffer in distance | |
| tolerance | maximum distance between theoretical arc and polygon segments | |
| [out] | OutPoints | output line |
Definition at line 851 of file buffer.c.
References D_MULT, G_debug(), NULL, PI, Vect_append_point(), Vect_append_points(), Vect_line_prune(), Vect_new_line_struct(), Vect_reset_line(), and y.
| void Vect_line_parallel | ( | struct line_pnts * | InPoints, |
| double | distance, | ||
| double | tolerance, | ||
| int | rm_end, | ||
| struct line_pnts * | OutPoints | ||
| ) |
Create parrallel line.
| InPoints | input line | |
| distance | create parrallel line in distance | |
| tolerance | maximum distance between theoretical arc and polygon segments | |
| rm_end | remove end points falling into distance | |
| [out] | OutPoints | output line |
Definition at line 823 of file buffer.c.
References G_debug().