GRASS GIS 8 Programmer's Manual  8.2.2dev(2023)-3d2c704037
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, double bx1, double by1, double bx2, double by2,
8  double *x1, double *y1, double *x2, double *y2);
9 int segment_intersection_2d_test(double ax1, double ay1, double ax2, double ay2, double bx1, double by1, double bx2, double by2,
10  double *x1, double *y1, double *x2, double *y2);*/
11 
12 int segment_intersection_2d_tol(double ax1, double ay1, double ax2, double ay2, double bx1, double by1, double bx2, double by2,
13  double *x1, double *y1, double *x2, double *y2, double tol);
14 
15 int segment_intersection_2d(double ax1, double ay1, double ax2, double ay2, double bx1, double by1, double bx2, double by2,
16  double *x1, double *y1, double *x2, double *y2);
17 
18 
19 int almost_equal(double a, double b, int bits);
20 
21 #endif
int almost_equal(double a, double b, int bits)
Definition: e_intersect.c:919
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:686
double b
Definition: r_raster.c:39
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:354