public interface Triangle3D extends ConvexPolygon3D
PlaneConvexSubset.Embedded
Modifier and Type | Method and Description |
---|---|
Vector3D |
getPoint1()
The first point in the triangle.
|
Vector3D |
getPoint2()
The second point in the triangle.
|
Vector3D |
getPoint3()
The third point in the triangle.
|
Triangle3D |
reverse() |
default List<Triangle3D> |
toTriangles()
Return a list of triangles representing the same subset region as this instance.
|
Triangle3D |
transform(Transform<Vector3D> transform) |
getEmbedded, getVertices, split, toConvex
getBounds, getHyperplane, getPlane, intersection, intersection
classify, closest, contains, getCentroid, isEmpty, isFull
getSize, isFinite, isInfinite
Vector3D getPoint1()
Vector3D getPoint2()
Vector3D getPoint3()
Triangle3D reverse()
reverse
in interface ConvexPolygon3D
reverse
in interface HyperplaneConvexSubset<Vector3D>
reverse
in interface PlaneConvexSubset
Triangle3D transform(Transform<Vector3D> transform)
transform
in interface ConvexPolygon3D
transform
in interface HyperplaneConvexSubset<Vector3D>
transform
in interface HyperplaneSubset<Vector3D>
transform
in interface PlaneConvexSubset
default List<Triangle3D> toTriangles()
IllegalStateException
is 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.
toTriangles
in interface PlaneSubset
Copyright © 2016–2021 The Apache Software Foundation. All rights reserved.