| Modifier and Type | Field and Description |
|---|---|
| private static final double | DEFAULT_TOLERANCE
Default value for tolerance. |
| private final boolean | includeCollinearPoints
Indicates if collinear points on the hull shall be present in the output. |
| private final double | tolerance
Tolerance below which points are considered identical. |
| Access | Constructor and Description |
|---|---|
| protected | AbstractConvexHullGenerator2D(final boolean
indicates if collinear points on the hull shall be
added as hull vertices includeCollinearPoints)Simple constructor. |
| protected | AbstractConvexHullGenerator2D(final boolean
indicates if collinear points on the hull shall be
added as hull vertices includeCollinearPoints, final double tolerance below which points are considered identical tolerance)Simple constructor. |
| Modifier and Type | Method and Description |
|---|---|
| protected abstract Collection | Returns: the convex hull vertices in CCW windingthe set of input points points)Find the convex hull vertices from the set of input points. |
| public ConvexHull2D | generate(final Collection<Vector2D>
the set of input points points)Implements org. Builds the convex hull from the set of input points. |
| public double | Returns: the tolerance below which points are considered identicalGet the tolerance below which points are considered identical. |
| public boolean | Returns: true if collinear points are added as hull vertices, or false
if only extreme points are present.Returns if collinear points on the hull will be added as hull vertices. |
| DEFAULT_TOLERANCE | back to summary |
|---|---|
| private static final double DEFAULT_TOLERANCE Default value for tolerance. | |
| includeCollinearPoints | back to summary |
|---|---|
| private final boolean includeCollinearPoints Indicates if collinear points on the hull shall be present in the output.
If | |
| tolerance | back to summary |
|---|---|
| private final double tolerance Tolerance below which points are considered identical. | |
| AbstractConvexHullGenerator2D | back to summary |
|---|---|
| protected AbstractConvexHullGenerator2D(final boolean includeCollinearPoints) Simple constructor. The default tolerance (1e-10) will be used to determine identical points.
| |
| AbstractConvexHullGenerator2D | back to summary |
|---|---|
| protected AbstractConvexHullGenerator2D(final boolean includeCollinearPoints, final double tolerance) Simple constructor.
| |
| findHullVertices | back to summary |
|---|---|
| protected abstract Collection Find the convex hull vertices from the set of input points.
| |
| generate | back to summary |
|---|---|
| public ConvexHull2D generate(final Collection<Vector2D> points) throws NullArgumentException, ConvergenceException Implements org. Doc from org. Builds the convex hull from the set of input points.
| |
| getTolerance | back to summary |
|---|---|
| public double getTolerance() Get the tolerance below which points are considered identical.
| |
| isIncludeCollinearPoints | back to summary |
|---|---|
| public boolean isIncludeCollinearPoints() Returns if collinear points on the hull will be added as hull vertices.
| |