java.lang.Objectcomputational.geometry.pointlocation.QueryTree
public class QueryTree
This structure is used to construct nodes of the rooted tree used in Kirkpatrick's method. Every node has it's unique id, triangle and its children.
Method Summary | |
---|---|
void |
addChild(QueryTree child)
Adds children to the node |
boolean |
contains(Point point)
Checkes if triangle controlled by the node contains point |
QueryTree |
getChild(int i)
Returns the i-th children of the node |
java.util.Vector |
getChildren()
Returns children of the node |
int |
getID()
Returns id of the node |
int |
getNumChildren()
Returns number of children of the node |
Triangle |
getTriangle()
Returns triangle of the node |
void |
setID(int _rootID)
Sets id of the node |
java.lang.String |
toString()
Returns string representation of the node |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public void addChild(QueryTree child)
child
- public boolean contains(Point point)
point
-
public QueryTree getChild(int i)
i
-
public java.util.Vector getChildren()
public int getID()
public int getNumChildren()
public Triangle getTriangle()
public void setID(int _rootID)
_rootID
- public java.lang.String toString()
toString
in class java.lang.Object