V
- The type of value for the coordinate system of the polygonpublic interface ConvexPolygon<S extends ConvexPolygon<S,V>,V extends Value<V>> extends SimplePolygon<S,V>
SimplePolygon.WindingDirection
CompoundPolygon.WindingRule
Modifier and Type | Method and Description |
---|---|
default CompoundPolygon<?,V> |
and(CompoundPolygon<?,V> value) |
java.util.Set<Vector2<V>> |
hullVertexSet()
This method returns a modifiable set containing all vertices which
currently effectively make a contribution to the convex Hull of this
Polygon, i.e.
|
java.util.Set<Vector2<V>> |
vertexSet()
This method returns a modifiable set representing the underlying
collection of vertices from which the convex hull represented by this
polygon is generated.
|
getArea, getSignedArea, getWindingDirection, windingRule
boundary, boundaryComponents, nand, nor, or, xnor, xor
contains, getAnd, getBounds, getNand, getNor, getOr, getPerimeter, getXnor, getXor, touches
intersects, touches
anonymize, decoupleValue, getValue, immutable, invalidations, over, over
java.util.Set<Vector2<V>> hullVertexSet()
vertexSet()
.
The Set is backed by the shape and changes will be reflected in it. If
vertices are moved around such that the convex hull changes any set
previously returned will reflect this change.
Adding vertices to the set will succeed if they are not already present,
and fall outside the current perimeter of the shape, and the shape will
be updated to reflect the addition. If the vertices being added lie
within the perimeter the addition to the set will fail and the underlying
model will not be changed. If more than one vertex is added at the same
time, only those which remain a part of this set after they have all been
added will remain a part of the underlying model.java.util.Set<Vector2<V>> vertexSet()
default CompoundPolygon<?,V> and(CompoundPolygon<?,V> value)
and
in interface ANDable<CompoundPolygon<?,V extends Value<V>>,CompoundPolygon<?,V extends Value<V>>>
and
in interface CompoundPolygon<S extends ConvexPolygon<S,V>,V extends Value<V>>