Public Member Functions | List of all members
PolygonOverlap Class Reference

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...
 

Detailed Description

Overlap of two polygons.

Definition at line 16 of file polygon_overlap_area.hpp.

Member Function Documentation

◆ PolyArea()

double PolygonOverlap::PolyArea ( vector< Vector2D > const &  polygon)

Calcualted the area of a convex polygon.

Parameters
polygonThe vertices of the polygon, should be ordered as a convex hull
Returns
The area

Definition at line 5 of file polygon_overlap_area.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ polygon_overlap_area()

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.

Parameters
ch1The convex hull of the first polygon
ch2The convex hull of the second polygon
R0A fraction of the effective radius of the first polygon
R1A fraction of the effective radius of the second polygon
Returns
The overlaped area

Definition at line 17 of file polygon_overlap_area.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following files: