geotests.hpp
Go to the documentation of this file.
1 
5 #ifndef GEOTEST_HPP
6 #define GEOTEST_HPP 1
7 
8 #include <vector>
9 #include "geometry.hpp"
10 #include "exactmath.hpp"
11 #include "../misc/triplet.hpp"
12 
17 double orient2d(const TripleConstRef<Vector2D>& points);
18 
24 double orient2dAdapt(const TripleConstRef<Vector2D>& points, double detsum);
25 
33 double incircle(const Vector2D& point_1,
34  const Vector2D& point_2,
35  const Vector2D& point_3,
36  const Vector2D& point_4);
37 
46 double incircleadapt(const Vector2D& point_1,
47  const Vector2D& point_2,
48  const Vector2D& point_3,
49  const Vector2D& point_4,
50  double permanent);
51 
52 #endif // GEOTEST_HPP
Geometrical calculations.
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 firs...
Definition: geotests.cpp:567
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 firs...
Definition: geotests.cpp:124
Exact math.
A collection of three identical references.
Definition: triplet.hpp:12
double orient2dAdapt(const TripleConstRef< Vector2D > &points, double detsum)
Checks whether 3 given points are on a counterclockwise circle, clockwise circle or colinear using ad...
Definition: geotests.cpp:4
2D Mathematical vector
Definition: geometry.hpp:15
double orient2d(const TripleConstRef< Vector2D > &points)
Checks whether 3 given points are on a counterclockwise circle, clockwise circle or colinear...
Definition: geotests.cpp:76