Class SubHyperplane.SplitSubHyperplane<U extends Space>
- java.lang.Object
-
- org.apache.commons.math3.geometry.partitioning.SubHyperplane.SplitSubHyperplane<U>
-
- Type Parameters:
U
- Type of the embedding space.
- Enclosing interface:
- SubHyperplane<S extends Space>
public static class SubHyperplane.SplitSubHyperplane<U extends Space> extends java.lang.Object
Class holding the results of thesplit
method.
-
-
Field Summary
Fields Modifier and Type Field Description private SubHyperplane<U>
minus
Part of the sub-hyperplane on the minus side of the splitting hyperplane.private SubHyperplane<U>
plus
Part of the sub-hyperplane on the plus side of the splitting hyperplane.
-
Constructor Summary
Constructors Constructor Description SplitSubHyperplane(SubHyperplane<U> plus, SubHyperplane<U> minus)
Build a SplitSubHyperplane from its parts.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SubHyperplane<U>
getMinus()
Get the part of the sub-hyperplane on the minus side of the splitting hyperplane.SubHyperplane<U>
getPlus()
Get the part of the sub-hyperplane on the plus side of the splitting hyperplane.Side
getSide()
Get the side of the split sub-hyperplane with respect to its splitter.
-
-
-
Field Detail
-
plus
private final SubHyperplane<U extends Space> plus
Part of the sub-hyperplane on the plus side of the splitting hyperplane.
-
minus
private final SubHyperplane<U extends Space> minus
Part of the sub-hyperplane on the minus side of the splitting hyperplane.
-
-
Constructor Detail
-
SplitSubHyperplane
public SplitSubHyperplane(SubHyperplane<U> plus, SubHyperplane<U> minus)
Build a SplitSubHyperplane from its parts.- Parameters:
plus
- part of the sub-hyperplane on the plus side of the splitting hyperplaneminus
- part of the sub-hyperplane on the minus side of the splitting hyperplane
-
-
Method Detail
-
getPlus
public SubHyperplane<U> getPlus()
Get the part of the sub-hyperplane on the plus side of the splitting hyperplane.- Returns:
- part of the sub-hyperplane on the plus side of the splitting hyperplane
-
getMinus
public SubHyperplane<U> getMinus()
Get the part of the sub-hyperplane on the minus side of the splitting hyperplane.- Returns:
- part of the sub-hyperplane on the minus side of the splitting hyperplane
-
getSide
public Side getSide()
Get the side of the split sub-hyperplane with respect to its splitter.- Returns:
Side.PLUS
if onlygetPlus()
is neither null nor empty,Side.MINUS
if onlygetMinus()
is neither null nor empty,Side.BOTH
if bothgetPlus()
andgetMinus()
are neither null nor empty orSide.HYPER
if bothgetPlus()
andgetMinus()
are either null or empty- Since:
- 3.6
-
-