Class Split<T>
java.lang.Object
org.apache.commons.geometry.core.partitioning.Split<T>
- Type Parameters:
T- Split type
Class containing the result of splitting an object with a hyperplane.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the location of the object with respect to its splitting hyperplane.getMinus()Get the part of the object lying on the minus side of the splitting hyperplane or null if no such part exists.getPlus()Get the part of the object lying on the plus side of the splitting hyperplane or null if no such part exists.toString()
-
Constructor Details
-
Split
Build a new instance from its parts.- Parameters:
minus- part of the object lying on the minus side of the splitting hyperplane or null if no such part existsplus- part of the object lying on the plus side of the splitting hyperplane or null if no such part exists.
-
-
Method Details
-
getMinus
Get the part of the object lying on the minus side of the splitting hyperplane or null if no such part exists.- Returns:
- part of the object lying on the minus side of the splitting hyperplane
-
getPlus
Get the part of the object lying on the plus side of the splitting hyperplane or null if no such part exists.- Returns:
- part of the object lying on the plus side of the splitting hyperplane
-
getLocation
Get the location of the object with respect to its splitting hyperplane.- Returns:
SplitLocation.PLUS- if onlygetPlus()is not nullSplitLocation.MINUS- if onlygetMinus()is not nullSplitLocation.BOTH- if bothgetPlus()andgetMinus()are not nullSplitLocation.NEITHER- if bothgetPlus()andgetMinus()are null
-
toString
-