polygon_overlap_area.hpp
Go to the documentation of this file.
1 
6 #include "PolyIntersect.hpp"
7 #include <boost/random/mersenne_twister.hpp>
8 #include <boost/random/uniform_real_distribution.hpp>
9 
11 typedef boost::mt19937_64 base_generator_type;
12 
13 using std::vector;
14 
17 {
18 private:
19  base_generator_type gen;
20 public:
22  PolygonOverlap(void);
23 
29  double PolyArea(vector<Vector2D> const& polygon);
38  double polygon_overlap_area(vector<Vector2D> const& ch1,
39  vector<Vector2D> const& ch2,double R0,double R1);
40 };
boost::mt19937_64 base_generator_type
Alias for random number generator.
Finds the intersection points between two polygons.
Overlap of 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.