Interface Triangle3D
- All Superinterfaces:
ConvexPolygon3D, HyperplaneConvexSubset<Vector3D>, HyperplaneSubset<Vector3D>, PlaneConvexSubset, PlaneSubset, Sized, Splittable<Vector3D, HyperplaneSubset<Vector3D>>
- All Known Implementing Classes:
SimpleTriangle3D
Interface representing a triangle in Euclidean 3D space.
-
Nested Class Summary
Nested classes/interfaces inherited from interface PlaneConvexSubset
PlaneConvexSubset.Embedded -
Method Summary
Modifier and TypeMethodDescriptionThe first point in the triangle.The second point in the triangle.The third point in the triangle.reverse()Reverse the orientation of the hyperplane for this instance, returning the result as a new instance.default List<Triangle3D> Return a list of triangles representing the same subset region as this instance.Return a new hyperplane subset resulting from the application of the given transform.Methods inherited from interface HyperplaneSubset
classify, closest, contains, getCentroid, isEmpty, isFullMethods inherited from interface PlaneConvexSubset
getEmbedded, getVertices, split, toConvexMethods inherited from interface PlaneSubset
getBounds, getHyperplane, getPlane, intersection, intersectionMethods inherited from interface Sized
getSize, isFinite, isInfinite
-
Method Details
-
getPoint1
-
getPoint2
-
getPoint3
-
reverse
Triangle3D 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:
reversein interfaceConvexPolygon3D- Specified by:
reversein interfaceHyperplaneConvexSubset<Vector3D>- Specified by:
reversein interfacePlaneConvexSubset- Returns:
- a hyperplane convex subset representing the same region but with the opposite orientation.
-
transform
Return a new hyperplane subset resulting from the application of the given transform. The current instance is not modified.- Specified by:
transformin interfaceConvexPolygon3D- Specified by:
transformin interfaceHyperplaneConvexSubset<Vector3D>- Specified by:
transformin interfaceHyperplaneSubset<Vector3D>- Specified by:
transformin interfacePlaneConvexSubset- Parameters:
transform- the transform instance to apply- Returns:
- new transformed hyperplane subset
-
toTriangles
Return a list of triangles representing the same subset region as this instance. AnIllegalStateExceptionis thrown if the subset has infinite size and therefore cannot be converted to triangles. If the subset has zero size (is empty), an empty list is returned.This method simply returns a singleton list containing this object.
- Specified by:
toTrianglesin interfacePlaneSubset- Returns:
- a list of triangles representing the same subset region as this instance
-