7 #include <boost/random/mersenne_twister.hpp> 8 #include <boost/random/uniform_real_distribution.hpp> 19 base_generator_type gen;
29 double PolyArea(vector<Vector2D>
const& polygon);
39 vector<Vector2D>
const& ch2,
double R0,
double R1);
boost::mt19937_64 base_generator_type
Alias for random number generator.
Finds the intersection points between two polygons.
PolygonOverlap(void)
Class constructor.
double PolyArea(vector< Vector2D > const &polygon)
Calcualted the area of a convex polygon.
double polygon_overlap_area(vector< Vector2D > const &ch1, vector< Vector2D > const &ch2, double R0, double R1)
Calculates the area overlaped between two convex polygons.