|
JTS Topology Suite - v 1.12 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.vividsolutions.jts.index.kdtree.KdNode
public class KdNode
A node of a KdTree
, which represents one or more points in the same location.
Constructor Summary | |
---|---|
KdNode(Coordinate p,
java.lang.Object data)
Creates a new KdNode. |
|
KdNode(double _x,
double _y,
java.lang.Object data)
Creates a new KdNode. |
Method Summary | |
---|---|
Coordinate |
getCoordinate()
Returns the location of this node |
int |
getCount()
Returns the number of inserted points that are coincident at this location. |
java.lang.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) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public KdNode(double _x, double _y, java.lang.Object data)
_x
- coordinate of point_y
- coordinate of pointdata
- a data objects to associate with this nodepublic KdNode(Coordinate p, java.lang.Object data)
p
- point location of new nodedata
- a data objects to associate with this nodeMethod Detail |
---|
public double getX()
public double getY()
public Coordinate getCoordinate()
public java.lang.Object getData()
public KdNode getLeft()
public KdNode getRight()
public int getCount()
public boolean isRepeated()
|
JTS Topology Suite - v 1.12 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |