| Constructor and Description |
|---|
KdNode(Coordinate
Creates a new KdNode.
|
KdNode(double _x, double _y, Object
Creates a new KdNode.
|
| Modifier and Type | Method and Description |
|---|---|
Coordinate |
getCoordinate()
Returns the location of this node
|
int |
getCount()
Returns the number of inserted points that are coincident at this location.
|
Object |
getData()
Gets the user data object associated with this node.
|
KdNode |
getLeft()
Returns the left node of the tree
|
KdNode |
getRight()
Returns the right node of the tree
|
double |
getX()
Returns the X coordinate of the node
|
double |
getY()
Returns the Y coordinate of the node
|
boolean |
isRepeated()
Tests whether more than one point with this value have been inserted (up to the tolerance)
|
public KdNode(double _x,
double _y,
Object data)
_x - coordinate of point
_y - coordinate of point
data - a data objects to associate with this node
public KdNode(Coordinatep, Object data)
p - point location of new node
data - a data objects to associate with this node
public double getX()
public double getY()
public CoordinategetCoordinate()
public ObjectgetData()
public KdNodegetLeft()
public KdNodegetRight()
public int getCount()
public boolean isRepeated()