public class FindBoundingQuadrilateral
extends java.lang.Object
| Constructor and Description |
|---|
FindBoundingQuadrilateral() |
| Modifier and Type | Method and Description |
|---|---|
static double |
area(georegression.struct.point.Point2D_F64 a,
georegression.struct.point.Point2D_F64 b,
georegression.struct.point.Point2D_F64 c)
Computes the area of a triangle given its vertices.
|
static java.util.List<georegression.struct.point.Point2D_F64> |
findCorners(java.util.List<georegression.struct.point.Point2D_F64> list)
Finds the corners of the quadrilateral.
|
static georegression.struct.point.Point2D_F64 |
maximizeArea(georegression.struct.point.Point2D_F64 a,
georegression.struct.point.Point2D_F64 b,
java.util.List<georegression.struct.point.Point2D_F64> list)
Finds the point which will maximize the area of a triangle defined by a,b, and a point
in the list.
|
static georegression.struct.point.Point2D_F64 |
maximizeForth(georegression.struct.point.Point2D_F64 a,
georegression.struct.point.Point2D_F64 b,
georegression.struct.point.Point2D_F64 c,
java.util.List<georegression.struct.point.Point2D_F64> list)
Finds the fourth point which maximizes the distance from a,b, and c.
|
public static java.util.List<georegression.struct.point.Point2D_F64> findCorners(java.util.List<georegression.struct.point.Point2D_F64> list)
list - List unordered corner points in the target. At least one point must be on a corner.public static georegression.struct.point.Point2D_F64 maximizeArea(georegression.struct.point.Point2D_F64 a,
georegression.struct.point.Point2D_F64 b,
java.util.List<georegression.struct.point.Point2D_F64> list)
a - Corner point in triangleb - Corner point in trianglelist - Candidate points for the 3rd cornerpublic static georegression.struct.point.Point2D_F64 maximizeForth(georegression.struct.point.Point2D_F64 a,
georegression.struct.point.Point2D_F64 b,
georegression.struct.point.Point2D_F64 c,
java.util.List<georegression.struct.point.Point2D_F64> list)
public static double area(georegression.struct.point.Point2D_F64 a,
georegression.struct.point.Point2D_F64 b,
georegression.struct.point.Point2D_F64 c)