public interface QuadTree<T extends Positionable> extends PositionChangeListener<T>, Parallelogram
Modifier and Type | Method and Description |
---|---|
boolean |
add(T element) |
void |
addAll(java.util.List<T> elements) |
void |
debugRender(Graphics g) |
java.util.List<T> |
getElements() |
void |
getElements(java.util.List<T> result) |
void |
getElementsContainingPoint(java.util.Collection<T> result,
Point point) |
java.util.List<T> |
getElementsContainingPoint(Point point) |
void |
getElementsIntersectingLineSegment(java.util.Collection<T> result,
LineSegment lineSegment) |
java.util.List<T> |
getElementsIntersectingLineSegment(LineSegment lineSegment) |
void |
getElementsWithinArea(java.util.Collection<T> result,
Shape area) |
java.util.List<T> |
getElementsWithinArea(Shape area) |
float |
getMinimumQuadHeight() |
float |
getMinimumQuadWidth() |
QuadTree<T> |
getParent() |
int |
getTotalElements() |
int |
getTotalQuads() |
boolean |
remove(T element) |
void |
removeAll(java.util.List<T> elements) |
positionChanged
contains, contains, getHeight, getMaxX, getMaxY, getRotation, getWidth, getX, getY, intersects, intersects, intersectsLineSegment, rotate, rotateAround, setRotation, setRotationAround
void debugRender(Graphics g)
boolean add(T element)
boolean remove(T element)
void addAll(java.util.List<T> elements)
void removeAll(java.util.List<T> elements)
java.util.List<T> getElementsIntersectingLineSegment(LineSegment lineSegment)
void getElementsIntersectingLineSegment(java.util.Collection<T> result, LineSegment lineSegment)
void getElementsContainingPoint(java.util.Collection<T> result, Point point)
java.util.List<T> getElements()
void getElements(java.util.List<T> result)
int getTotalQuads()
int getTotalElements()
float getMinimumQuadWidth()
float getMinimumQuadHeight()