Class AbstractPlaneSubset
java.lang.Object
org.apache.commons.geometry.euclidean.threed.AbstractPlaneSubset
- All Implemented Interfaces:
HyperplaneSubset<Vector3D>, Splittable<Vector3D, HyperplaneSubset<Vector3D>>, Sized, PlaneSubset
- Direct Known Subclasses:
AbstractConvexPolygon3D, AbstractEmbeddedRegionPlaneSubset
Abstract base class for
PlaneSubset implementations.-
Nested Class Summary
Nested classes/interfaces inherited from interface PlaneSubset
PlaneSubset.Embedded -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the hyperplane containing this instance.intersection(Line3D line) Get the unique intersection of this plane subset with the given line.intersection(LineConvexSubset3D lineSubset) Get the unique intersection of this plane subset with the given line subset.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface HyperplaneSubset
classify, closest, contains, getCentroid, isEmpty, isFull, transformMethods inherited from interface PlaneSubset
getBounds, getEmbedded, getPlane, toConvex, toTrianglesMethods inherited from interface Sized
getSize, isFinite, isInfiniteMethods inherited from interface Splittable
split
-
Constructor Details
-
AbstractPlaneSubset
AbstractPlaneSubset()
-
-
Method Details
-
getHyperplane
Get the hyperplane containing this instance.- Specified by:
getHyperplanein interfaceHyperplaneSubset<Vector3D>- Specified by:
getHyperplanein interfacePlaneSubset- Returns:
- the hyperplane containing this instance
-
intersection
Get the unique intersection of this plane subset with the given line. Null is returned if no unique intersection point exists (ie, the line and plane are parallel or coincident) or the line does not intersect the plane subset.- Specified by:
intersectionin interfacePlaneSubset- Parameters:
line- line to intersect with this plane subset- Returns:
- the unique intersection point between the line and this plane subset or null if no such point exists.
- See Also:
-
intersection
Get the unique intersection of this plane subset with the given line subset. Null is returned if the underlying line and plane do not have a unique intersection point (ie, they are parallel or coincident) or the intersection point is unique but is not contained in both the line subset and plane subset.- Specified by:
intersectionin interfacePlaneSubset- Parameters:
lineSubset- line subset to intersect with- Returns:
- the unique intersection point between this plane subset and the argument or null if no such point exists.
- See Also:
-