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()
QuadTreeAwareQuadTree 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 QuadTreeAwarepublic void setQuad(QuadTree quadTree)
QuadTreeAwareQuadTree where this object is located. Automatically called by QuadTree.add(T) methods.
NOTE: Internal use only.setQuad in interface QuadTreeAwarequadTree - The QuadTree where this object is located.