1 #ifndef GRASS_E_INTERSECT_H
2 #define GRASS_E_INTERSECT_H
4 #define FZERO(X, TOL) (fabs(X) < TOL)
5 #define FEQUAL(X, Y, TOL) (fabs(X - Y) < TOL)
14 double bx1,
double by1,
double bx2,
double by2,
15 double *x1,
double *y1,
double *x2,
double *y2,
19 double bx1,
double by1,
double bx2,
double by2,
20 double *x1,
double *y1,
double *x2,
double *y2);
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 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 almost_equal(double a, double b, int bits)