GRASS GIS 8 Programmer's Manual
8.2.2dev(2023)-3d2c704037
|
Vector library - intersection (lower level functions) More...
Go to the source code of this file.
Macros | |
#define | SWAP(a, b) {double t = a; a = b; b = t;} |
#define | D ((ax2-ax1)*(by1-by2) - (ay2-ay1)*(bx1-bx2)) |
#define | DA ((bx1-ax1)*(by1-by2) - (by1-ay1)*(bx1-bx2)) |
#define | DB ((ax2-ax1)*(by1-ay1) - (ay2-ay1)*(bx1-ax1)) |
#define | N 52 /* double's mantisa size in bits */ |
Functions | |
int | segment_intersection_2d_tol (double ax1, double ay1, double ax2, double ay2, double bx1, double by1, double bx2, double by2, double *x1, double *y1, double *x2, double *y2, double tol) |
int | segment_intersection_2d (double ax1, double ay1, double ax2, double ay2, double bx1, double by1, double bx2, double by2, double *x1, double *y1, double *x2, double *y2) |
int | almost_equal (double a, double b, int bits) |
Vector library - intersection (lower level functions)
Higher level functions for reading/writing/manipulating vectors.
(C) 2008-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.
Definition in file e_intersect.c.
#define D ((ax2-ax1)*(by1-by2) - (ay2-ay1)*(bx1-bx2)) |
Definition at line 24 of file e_intersect.c.
#define DA ((bx1-ax1)*(by1-by2) - (by1-ay1)*(bx1-bx2)) |
Definition at line 25 of file e_intersect.c.
#define DB ((ax2-ax1)*(by1-ay1) - (ay2-ay1)*(bx1-ax1)) |
Definition at line 26 of file e_intersect.c.
#define N 52 /* double's mantisa size in bits */ |
Definition at line 917 of file e_intersect.c.
Referenced by N_callback_gwflow_2d(), N_callback_solute_transport_2d(), N_create_27star(), N_create_5star(), N_create_7star(), N_create_9star(), Vect_point_in_box(), and Vect_point_in_box_2d().
int almost_equal | ( | double | a, |
double | b, | ||
int | bits | ||
) |
Definition at line 919 of file e_intersect.c.
int segment_intersection_2d | ( | double | ax1, |
double | ay1, | ||
double | ax2, | ||
double | ay2, | ||
double | bx1, | ||
double | by1, | ||
double | bx2, | ||
double | by2, | ||
double * | x1, | ||
double * | y1, | ||
double * | x2, | ||
double * | y2 | ||
) |
Definition at line 686 of file e_intersect.c.
int segment_intersection_2d_tol | ( | double | ax1, |
double | ay1, | ||
double | ax2, | ||
double | ay2, | ||
double | bx1, | ||
double | by1, | ||
double | bx2, | ||
double | by2, | ||
double * | x1, | ||
double * | y1, | ||
double * | x2, | ||
double * | y2, | ||
double | tol | ||
) |
Definition at line 354 of file e_intersect.c.