georegression.metric
Class Area2D_F64
- java.lang.Object
-
- georegression.metric.Area2D_F64
-
public class Area2D_F64 extends java.lang.ObjectThe area contained inside 2D shapes
-
-
Constructor Summary
Constructors Constructor and Description Area2D_F64()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static doublepolygonSimple(Polygon2D_F64 poly)Area of a simple polygon.static doublequadrilateral(Quadrilateral_F64 quad)Area of a quadrilateral computed from two triangles.static doubletriangle(Point2D_F64 a, Point2D_F64 b, Point2D_F64 c)Computes the area of an arbitrary triangle from 3-vertices.
-
-
-
Method Detail
-
triangle
public static double triangle(Point2D_F64 a, Point2D_F64 b, Point2D_F64 c)
Computes the area of an arbitrary triangle from 3-vertices. area = | a.x*(b.y - c.y) + b.x*(c.y - a.y) + c.x*(a.y - b.y) | / 2- Parameters:
a- Corner point 1b- Corner point 2c- Corner point 3- Returns:
- area
-
quadrilateral
public static double quadrilateral(Quadrilateral_F64 quad)
Area of a quadrilateral computed from two triangles.- Parameters:
quad- quadrilateral- Returns:
- area
-
polygonSimple
public static double polygonSimple(Polygon2D_F64 poly)
Area of a simple polygon. Meaning it can be concave or convex, but can't have self intersections- Parameters:
poly- Simple polygon- Returns:
- area
-
-
DataMelt 3.0 © DataMelt by jWork.ORG