Package georegression.geometry.polygon
Class AreaIntersectionPolygon2D_F64
java.lang.Object
georegression.geometry.polygon.AreaIntersectionPolygon2D_F64
Computes the area of intersection between two convex polygons. Port of code found at [1] and Java version by Lagado.
[1] http://www.cap-lore.com/MathPhys/IP/-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
Computes the area of the intersection between the two polygons.
-
Constructor Details
-
AreaIntersectionPolygon2D_F64
public AreaIntersectionPolygon2D_F64()
-
-
Method Details
-
computeArea
Computes the area of the intersection between the two polygons.
Note: the area result has little more accuracy than a float This is true even if the polygon is specified with doubles.- Parameters:
a
- Polygon Ab
- Polygon B- Returns:
- area of intersection. Negative if the order (CW vs CCW) do not match.
-