public class KdPoint
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
KdPoint.As2D
Representation of a 2D-Point
|
static class |
KdPoint.As3D
Representation of a 3D-Point
|
| Constructor and Description |
|---|
KdPoint(int dimensionCount) |
KdPoint(int[] offsets) |
KdPoint(KdPoint point) |
| Modifier and Type | Method and Description |
|---|---|
void |
assign(KdPoint point) |
boolean |
equals(java.lang.Object obj)
Indicates whether some other KdPoint is "equal to" this one.
|
int |
get(int axis) |
int |
getDimensionCount() |
int |
hashCode()
Returns a hash code value for the object.
|
void |
set(int axis,
int offset) |
void |
setRandom(int origin,
int bound)
Generates random coordinates for this point.
|
java.lang.String |
toString()
Returns a string representation of the object.
|
public KdPoint(int dimensionCount)
public KdPoint(int[] offsets)
public KdPoint(KdPoint point)
public void assign(KdPoint point)
public int get(int axis)
public void set(int axis,
int offset)
public void setRandom(int origin,
int bound)
origin - Minimum value.bound - Maximum value, greater than origin.public int getDimensionCount()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - the reference object with which to compare.true if this object is the same as the obj argument; false otherwise.hashCode(),
HashMappublic int hashCode()
hashCode in class java.lang.ObjectObject.equals(Object),
System.identityHashCode(java.lang.Object)public java.lang.String toString()
toString in class java.lang.Object