
public class HyperBoundingBox extends Object implements SpatialComparable, Externalizable
| Modifier and Type | Field and Description | 
|---|---|
| (package private) double[] | maxThe coordinates of the 'upper right' (= maximum) hyper point. | 
| (package private) double[] | minThe coordinates of the 'lower left' (= minimum) hyper point. | 
| private static long | serialVersionUIDSerial version. | 
| Constructor and Description | 
|---|
| HyperBoundingBox()Empty constructor for Externalizable interface. | 
| HyperBoundingBox(double[] min,
                double[] max)Creates a HyperBoundingBox for the given hyper points. | 
| HyperBoundingBox(SpatialComparable other)Constructor, cloning an existing spatial object. | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | equals(Object obj) | 
| int | getDimensionality()Returns the dimensionality of this HyperBoundingBox. | 
| double | getMax(int dimension)Returns the coordinate at the specified dimension of the maximum hyper
 point. | 
| double | getMin(int dimension)Returns the coordinate at the specified dimension of the minimum hyper
 point. | 
| int | hashCode() | 
| void | readExternal(ObjectInput in)The object implements the readExternal method to restore its contents by
 calling the methods of DataInput for primitive types and readObject for
 objects, strings and arrays. | 
| String | toString()Returns a String representation of the HyperBoundingBox. | 
| String | toString(String pre,
        NumberFormat nf)Returns a String representation of the HyperBoundingBox. | 
| void | writeExternal(ObjectOutput out)The object implements the writeExternal method to save its contents by
 calling the methods of DataOutput for its primitive values or calling the
 writeObject method of ObjectOutput for objects, strings, and arrays. | 
private static final long serialVersionUID
double[] min
double[] max
public HyperBoundingBox()
public HyperBoundingBox(double[] min,
                double[] max)
min - - the coordinates of the minimum hyper pointmax - - the coordinates of the maximum hyper pointpublic HyperBoundingBox(SpatialComparable other)
other - Object to clonepublic double getMin(int dimension)
getMin in interface SpatialComparabledimension - the dimension for which the coordinate should be returned,
        where 0 ≤ dimension < this.getDimensionality()public double getMax(int dimension)
getMax in interface SpatialComparabledimension - the dimension for which the coordinate should be returned,
        where 0 ≤ dimension < this.getDimensionality()public int getDimensionality()
getDimensionality in interface SpatialComparablepublic String toString()
public String toString(String pre, NumberFormat nf)
nf - number format for output accuracypre - the prefix of each linepublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface Externalizableout - the stream to write the object toIOException - Includes any I/O exceptions that may occurpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface Externalizablein - the stream to read data from in order to restore the objectIOException - if I/O errors occurClassNotFoundException - If the class for an object being restored
         cannot be found.