sub-hyperplanes are obtained when parts of an hyperplane are chopped off by other hyperplanes that
intersect it. The remaining part is a convex region. Such objects
appear in BSP trees as the intersection of a cut
hyperplane with the convex region which it splits, the chopping
hyperplanes are the cut hyperplanes closer to the tree root.
Note that this interface is not intended to be implemented by Apache Commons Math users, it is only intended to be implemented within the library itself. New methods may be added even for minor versions, which breaks compatibility for external implementations.
| Modifier and Type | Class and Description |
|---|---|
| public static class | SubHyperplane.
Type of the embedding space. U extends Space>Class holding the results of the |
| Modifier and Type | Method and Description |
|---|---|
| public SubHyperplane | |
| public Hyperplane | |
| public double | Returns: the size of the instance (this is a length in 1D, an area in 2D, a volume in 3D ...)Get the size of the instance. |
| public boolean | |
| public SubHyperplane | Returns: a new sub-hyperplane, union of the instance and otherother sub-hyperplane to union (must be in the
same hyperplane as the instance) other)Compute the union of the instance and another sub-hyperplane. |
| public Side | side(Hyperplane<S>
hyperplane to check instance against hyperplane)
Deprecated
as of 3.6, replaced with
split(Hyperplane).
Compute the relative position of the instance with respect to an hyperplane. |
| public SubHyperplane. | Returns: an object containing both the part of the instance on the plus side of the hyperplane and the part of the instance on the minus side of the hyperplanesplitting hyperplane hyperplane)Split the instance in two parts by an hyperplane. |
| copySelf | back to summary |
|---|---|
| public SubHyperplane Copy the instance. The instance created is completely independent of the original one. A deep copy is used, none of the underlying objects are shared (except for the nodes attributes and immutable objects).
| |
| getHyperplane | back to summary |
|---|---|
| public Hyperplane Get the underlying hyperplane.
| |
| getSize | back to summary |
|---|---|
| public double getSize() Get the size of the instance.
| |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Check if the instance is empty.
| |
| reunite | back to summary |
|---|---|
| public SubHyperplane Compute the union of the instance and another sub-hyperplane.
| |
| side | back to summary |
|---|---|
| public Side side(Hyperplane<S> hyperplane)
Deprecated as of 3.6, replaced with Compute the relative position of the instance with respect to an hyperplane.
| |
| split | back to summary |
|---|---|
| public SubHyperplane. Split the instance in two parts by an hyperplane.
| |
split method.
| Modifier and Type | Field and Description |
|---|---|
| private final SubHyperplane | minus
Part of the sub-hyperplane on the minus side of the splitting hyperplane. |
| private final SubHyperplane | plus
Part of the sub-hyperplane on the plus side of the splitting hyperplane. |
| Access | Constructor and Description |
|---|---|
| public | SplitSubHyperplane(final SubHyperplane<U>
part of the sub-hyperplane on the plus side of the
splitting hyperplane plus, final SubHyperplane<U> part of the sub-hyperplane on the minus side of the
splitting hyperplane minus)Build a SplitSubHyperplane from its parts. |
| Modifier and Type | Method and Description |
|---|---|
| public SubHyperplane | Returns: part of the sub-hyperplane on the minus side of the splitting hyperplaneGet the part of the sub-hyperplane on the minus side of the splitting hyperplane. |
| public SubHyperplane | Returns: part of the sub-hyperplane on the plus side of the splitting hyperplaneGet the part of the sub-hyperplane on the plus side of the splitting hyperplane. |
| public Side | Returns: Side#PLUS if only getPlus() is neither null nor empty,
Side#MINUS if only getMinus() is neither null nor empty,
Side#BOTH if both getPlus() and getMinus()
are neither null nor empty or Side#HYPER if both getPlus() and
getMinus() are either null or emptyGet the side of the split sub-hyperplane with respect to its splitter. |
| minus | back to summary |
|---|---|
| private final SubHyperplane<U> minus Part of the sub-hyperplane on the minus side of the splitting hyperplane. | |
| plus | back to summary |
|---|---|
| private final SubHyperplane<U> plus Part of the sub-hyperplane on the plus side of the splitting hyperplane. | |
| SplitSubHyperplane | back to summary |
|---|---|
| public SplitSubHyperplane(final SubHyperplane<U> plus, final SubHyperplane<U> minus) Build a SplitSubHyperplane from its parts.
| |
| getMinus | back to summary |
|---|---|
| public SubHyperplane Get the part of the sub-hyperplane on the minus side of the splitting hyperplane.
| |
| getPlus | back to summary |
|---|---|
| public SubHyperplane Get the part of the sub-hyperplane on the plus side of the splitting hyperplane.
| |
| getSide | back to summary |
|---|---|
| public Side getSide() Get the side of the split sub-hyperplane with respect to its splitter.
| |