Overlap of two polygons. More...
#include <polygon_overlap_area.hpp>
Public Member Functions | |
PolygonOverlap (void) | |
Class constructor. | |
double | PolyArea (vector< Vector2D > const &polygon) |
Calcualted the area of a convex polygon. More... | |
double | polygon_overlap_area (vector< Vector2D > const &ch1, vector< Vector2D > const &ch2, double R0, double R1) |
Calculates the area overlaped between two convex polygons. More... | |
Overlap of two polygons.
Definition at line 16 of file polygon_overlap_area.hpp.
double PolygonOverlap::PolyArea | ( | vector< Vector2D > const & | polygon | ) |
Calcualted the area of a convex polygon.
polygon | The vertices of the polygon, should be ordered as a convex hull |
Definition at line 5 of file polygon_overlap_area.cpp.
double PolygonOverlap::polygon_overlap_area | ( | vector< Vector2D > const & | ch1, |
vector< Vector2D > const & | ch2, | ||
double | R0, | ||
double | R1 | ||
) |
Calculates the area overlaped between two convex polygons.
ch1 | The convex hull of the first polygon |
ch2 | The convex hull of the second polygon |
R0 | A fraction of the effective radius of the first polygon |
R1 | A fraction of the effective radius of the second polygon |
Definition at line 17 of file polygon_overlap_area.cpp.