|
Algorithm Development Kit 1.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IHypercube
Represents a hypercube in the n-dimensional Cartesian plane. Note that it is an invariant that getLeft(d) <= getRight(d) for all dimensions d
Method Summary | |
---|---|
boolean |
contains(IHypercube h)
Determine if the hypercube wholly contains the given hypercube h. |
int |
dimensionality()
return the dimensionality of this hypercube. |
double |
getLeft(int d)
return the coordinate value for the left-side of the given dimension. |
double |
getRight(int d)
return the coordinate value for the right-side of the given dimension. |
boolean |
intersects(double[] coords)
Optimized version of intersects(IMultiPoint) . |
boolean |
intersects(IHypercube h)
Determine if the hypercube intersects the given hypercube h. |
boolean |
intersects(IMultiPoint p)
Determine if the given point intersects the hypercube. |
Method Detail |
---|
int dimensionality()
double getLeft(int d)
d
- dimension value in the range 1 <= d <= dimensionality()double getRight(int d)
d
- dimension value in the range 1 <= d <= dimensionality()boolean intersects(IMultiPoint p) throws java.lang.IllegalArgumentException
If
- dimensions are not the same
java.lang.IllegalArgumentException
boolean intersects(double[] coords)
intersects(IMultiPoint)
.
boolean intersects(IHypercube h) throws java.lang.IllegalArgumentException
h
- The target hypercube.
If
- dimensions are not the same
java.lang.IllegalArgumentException
boolean contains(IHypercube h) throws java.lang.IllegalArgumentException
h
- The target hypercube.
If
- dimensions are not the same
java.lang.IllegalArgumentException
|
Algorithm Development Kit 1.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |