Interface ConvexPolygon3D
-
- All Superinterfaces:
HyperplaneConvexSubset<Vector3D>
,HyperplaneSubset<Vector3D>
,PlaneConvexSubset
,PlaneSubset
,Sized
,Splittable<Vector3D,HyperplaneSubset<Vector3D>>
- All Known Subinterfaces:
Triangle3D
- All Known Implementing Classes:
AbstractConvexPolygon3D
,SimpleTriangle3D
,VertexListConvexPolygon3D
public interface ConvexPolygon3D extends PlaneConvexSubset
Interface representing a closed, finite convex polygon in Euclidean 3D space.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.commons.geometry.euclidean.threed.PlaneConvexSubset
PlaneConvexSubset.Embedded
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ConvexPolygon3D
reverse()
Reverse the orientation of the hyperplane for this instance, returning the result as a new instance.ConvexPolygon3D
transform(Transform<Vector3D> transform)
Return a new hyperplane subset resulting from the application of the given transform.-
Methods inherited from interface org.apache.commons.geometry.core.partitioning.HyperplaneSubset
classify, closest, contains, getCentroid, isEmpty, isFull
-
Methods inherited from interface org.apache.commons.geometry.euclidean.threed.PlaneConvexSubset
getEmbedded, getVertices, split, toConvex
-
Methods inherited from interface org.apache.commons.geometry.euclidean.threed.PlaneSubset
getBounds, getHyperplane, getPlane, intersection, intersection, toTriangles
-
Methods inherited from interface org.apache.commons.geometry.core.Sized
getSize, isFinite, isInfinite
-
-
-
-
Method Detail
-
reverse
ConvexPolygon3D reverse()
Reverse the orientation of the hyperplane for this instance, returning the result as a new instance. The returned subset contains the same points but has a reversed orientation.- Specified by:
reverse
in interfaceHyperplaneConvexSubset<Vector3D>
- Specified by:
reverse
in interfacePlaneConvexSubset
- Returns:
- a hyperplane convex subset representing the same region but with the opposite orientation.
-
transform
ConvexPolygon3D transform(Transform<Vector3D> transform)
Return a new hyperplane subset resulting from the application of the given transform. The current instance is not modified.- Specified by:
transform
in interfaceHyperplaneConvexSubset<Vector3D>
- Specified by:
transform
in interfaceHyperplaneSubset<Vector3D>
- Specified by:
transform
in interfacePlaneConvexSubset
- Parameters:
transform
- the transform instance to apply- Returns:
- new transformed hyperplane subset
-
-