public abstract class QuadTreeAwareObject extends java.lang.Object implements QuadTreeAware
QuadTreeAware
in order to allow QuadTreeSearchDirection.UPWARDS
search.Constructor and Description |
---|
QuadTreeAwareObject() |
Modifier and Type | Method and Description |
---|---|
QuadTree |
getQuad()
Returns the
QuadTree where this object is located. |
void |
setQuad(QuadTree quadTree)
Sets the
QuadTree where this object is located. |
public QuadTree getQuad()
QuadTreeAware
QuadTree
where this object is located. You can call this method in order to get the QuadTree on which you can do QuadTreeSearchDirection.UPWARDS
search.getQuad
in interface QuadTreeAware
public void setQuad(QuadTree quadTree)
QuadTreeAware
QuadTree
where this object is located. Automatically called by QuadTree.add(T)
methods.
NOTE: Internal use only.setQuad
in interface QuadTreeAware
quadTree
- The QuadTree where this object is located.