public class ClosedWritablePolygon2D extends DefaultWritablePolygon2D
Polygon2D which contains all boundary points, and is defined by the
provided vertices.
This implementation of a polygon does not support creating a single polygon object which is actually multiple polygons. It does support self-intersecting polygons with even-odd winding.
DefaultWritablePolygon2D.VertexListx, ymax, minn| Constructor and Description |
|---|
ClosedWritablePolygon2D(double[] x,
double[] y) |
ClosedWritablePolygon2D(List<? extends RealLocalizable> vertices) |
| Modifier and Type | Method and Description |
|---|---|
BoundaryType |
boundaryType()
Returns the boundary behavior of this Mask.
|
boolean |
test(RealLocalizable localizable)
Return true if the given point is contained inside the boundary.
|
addVertex, addVertices, equals, hashCode, numVertices, removeVertex, vertexrealMax, realMax, realMax, realMin, realMin, realMin, toStringnumDimensionsclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddVertexhashCode, maskType, numDimensionsand, isEmpty, minus, or, realMax, realMax, realMin, realMin, transform, xorisAll, knownConstantmaxAsDoubleArray, maxAsRealPoint, minAsDoubleArray, minAsRealPoint, realMax, realMinpublic ClosedWritablePolygon2D(List<? extends RealLocalizable> vertices)
public ClosedWritablePolygon2D(double[] x,
double[] y)
public boolean test(RealLocalizable localizable)
DefaultWritablePolygon2Dtest in interface Predicate<RealLocalizable>test in class DefaultWritablePolygon2Dpublic BoundaryType boundaryType()
MaskPredicateCopyright © 2015–2022 ImgLib2. All rights reserved.