GRASS GIS 8 Programmer's Manual  8.4.0dev(2024)-2653d7b383
e_intersect.h
Go to the documentation of this file.
1 #ifndef GRASS_E_INTERSECT_H
2 #define GRASS_E_INTERSECT_H
3 
4 #define FZERO(X, TOL) (fabs(X) < TOL)
5 #define FEQUAL(X, Y, TOL) (fabs(X - Y) < TOL)
6 
7 /*int segment_intersection_2d_e(double ax1, double ay1, double ax2, double ay2,
8  double bx1, double by1, double bx2, double by2, double *x1, double *y1,
9  double *x2, double *y2); int segment_intersection_2d_test(double ax1, double
10  ay1, double ax2, double ay2, double bx1, double by1, double bx2, double by2,
11  double *x1, double *y1, double *x2, double *y2); */
12 
13 int segment_intersection_2d_tol(double ax1, double ay1, double ax2, double ay2,
14  double bx1, double by1, double bx2, double by2,
15  double *x1, double *y1, double *x2, double *y2,
16  double tol);
17 
18 int segment_intersection_2d(double ax1, double ay1, double ax2, double ay2,
19  double bx1, double by1, double bx2, double by2,
20  double *x1, double *y1, double *x2, double *y2);
21 
22 int almost_equal(double a, double b, int bits);
23 
24 #endif
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: e_intersect.c:692
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: e_intersect.c:361
int almost_equal(double a, double b, int bits)
Definition: e_intersect.c:928
double b
Definition: r_raster.c:39