|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
S
- Type of the embedding space.public interface SubHyperplane<S extends Space>
This interface represents the remaining parts of an hyperplane after other parts have been chopped off.
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.
Nested Class Summary | |
---|---|
static class |
SubHyperplane.SplitSubHyperplane<U extends Space>
Class holding the results of the split method. |
Method Summary | |
---|---|
SubHyperplane<S> |
copySelf()
Copy the instance. |
Hyperplane<S> |
getHyperplane()
Get the underlying hyperplane. |
double |
getSize()
Get the size of the instance. |
boolean |
isEmpty()
Check if the instance is empty. |
SubHyperplane<S> |
reunite(SubHyperplane<S> other)
Compute the union of the instance and another sub-hyperplane. |
Side |
side(Hyperplane<S> hyperplane)
Compute the relative position of the instance with respect to an hyperplane. |
SubHyperplane.SplitSubHyperplane<S> |
split(Hyperplane<S> hyperplane)
Split the instance in two parts by an hyperplane. |
Method Detail |
---|
SubHyperplane<S> copySelf()
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).
Hyperplane<S> getHyperplane()
boolean isEmpty()
double getSize()
Side side(Hyperplane<S> hyperplane)
hyperplane
- hyperplane to check instance against
Side.PLUS
, Side.MINUS
, Side.BOTH
,
Side.HYPER
SubHyperplane.SplitSubHyperplane<S> split(Hyperplane<S> hyperplane)
hyperplane
- splitting hyperplane
SubHyperplane<S> reunite(SubHyperplane<S> other)
other
- other sub-hyperplane to union (must be in the
same hyperplane as the instance)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |