Various checks for geometric data. More...
Go to the source code of this file.
Functions | |
double | orient2d (const TripleConstRef< Vector2D > &points) |
Checks whether 3 given points are on a counterclockwise circle, clockwise circle or colinear. More... | |
double | orient2dAdapt (const TripleConstRef< Vector2D > &points, double detsum) |
Checks whether 3 given points are on a counterclockwise circle, clockwise circle or colinear using adpative math. More... | |
double | incircle (const Vector2D &point_1, const Vector2D &point_2, const Vector2D &point_3, const Vector2D &point_4) |
Checks whether the 4th point is inside, outside or on the counterclockwise circle created by the first 3 points. More... | |
double | incircleadapt (const Vector2D &point_1, const Vector2D &point_2, const Vector2D &point_3, const Vector2D &point_4, double permanent) |
Checks whether the 4th point is inside, outside or on the counterclockwise circle created by the first 3 points using adaptive math. More... | |
Various checks for geometric data.
Definition in file geotests.hpp.
double incircle | ( | const Vector2D & | point_1, |
const Vector2D & | point_2, | ||
const Vector2D & | point_3, | ||
const Vector2D & | point_4 | ||
) |
Checks whether the 4th point is inside, outside or on the counterclockwise circle created by the first 3 points.
point_1 | First point |
point_2 | Second point |
point_3 | Third point |
point_4 | Fourth point |
Definition at line 567 of file geotests.cpp.
double incircleadapt | ( | const Vector2D & | point_1, |
const Vector2D & | point_2, | ||
const Vector2D & | point_3, | ||
const Vector2D & | point_4, | ||
double | permanent | ||
) |
Checks whether the 4th point is inside, outside or on the counterclockwise circle created by the first 3 points using adaptive math.
point_1 | First point |
point_2 | Second point |
point_3 | Third point |
point_4 | Fourth point |
permanent | The error estimate |
Definition at line 124 of file geotests.cpp.
double orient2d | ( | const TripleConstRef< Vector2D > & | points | ) |
Checks whether 3 given points are on a counterclockwise circle, clockwise circle or colinear.
points | The three points to check |
Definition at line 76 of file geotests.cpp.
double orient2dAdapt | ( | const TripleConstRef< Vector2D > & | points, |
double | detsum | ||
) |
Checks whether 3 given points are on a counterclockwise circle, clockwise circle or colinear using adpative math.
points | The three points to check |
detsum | The determinant obtained from orient2d |
Definition at line 4 of file geotests.cpp.