public class OpenWritablePolygon2D extends DefaultWritablePolygon2D
Polygon2D
which contains no 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.VertexList
x, y
max, min
n
Constructor and Description |
---|
OpenWritablePolygon2D(double[] x,
double[] y) |
OpenWritablePolygon2D(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, vertex
realMax, realMax, realMax, realMin, realMin, realMin, toString
numDimensions
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addVertex
hashCode, maskType, numDimensions
and, isEmpty, minus, or, realMax, realMax, realMin, realMin, transform, xor
isAll, knownConstant
maxAsDoubleArray, maxAsRealPoint, minAsDoubleArray, minAsRealPoint, realMax, realMin
public OpenWritablePolygon2D(List<? extends RealLocalizable> vertices)
public OpenWritablePolygon2D(double[] x, double[] y)
public boolean test(RealLocalizable localizable)
DefaultWritablePolygon2D
test
in interface Predicate<RealLocalizable>
test
in class DefaultWritablePolygon2D
public BoundaryType boundaryType()
MaskPredicate
Copyright © 2015–2022 ImgLib2. All rights reserved.