public class QuadTreeAwareCollisionPolygon extends CollisionPolygon implements QuadTreeAware
CollisionPolygon
which implements QuadTreeAware
in order to allow QuadTreeSearchDirection.UPWARDS
search.geometry, positionChangeListeners, sizeChangeListeners
Constructor and Description |
---|
QuadTreeAwareCollisionPolygon(CollisionPolygon polygon) |
QuadTreeAwareCollisionPolygon(float[] vertices) |
QuadTreeAwareCollisionPolygon(int id,
float[] vertices) |
QuadTreeAwareCollisionPolygon(int id,
org.mini2Dx.gdx.math.Vector2[] vectors) |
QuadTreeAwareCollisionPolygon(org.mini2Dx.gdx.math.Vector2[] vectors) |
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. |
addPostionChangeListener, addSizeChangeListener, clearPositionChangeListeners, clearSizeChangeListeners, dispose, equals, forceTo, forceTo, forceTo, getId, getRenderHeight, getRenderWidth, getRenderX, getRenderX, getRenderY, getRenderY, hashCode, interpolate, notifyPositionChangeListeners, notifySizeChangeListeners, positionChanged, preUpdate, removePositionChangeListener, removeSizeChangeListener, sizeChanged, toString
addPoint, addPoint, contains, contains, contains, contains, copy, draw, edgeIterator, fill, getCenterX, getCenterY, getDistanceTo, getHeight, getMaxX, getMaxY, getMinX, getMinY, getNumberOfSides, getPolygon, getRotation, getTriangles, getVertices, getWidth, getX, getX, getY, getY, intersects, intersects, intersects, intersects, intersects, intersects, intersectsLineSegment, intersectsLineSegment, isCircle, isEquilateral, isEquilateral, isRectangle, isSameAs, lerp, removePoint, removePoint, rotate, rotateAround, scale, set, setCenter, setCenterX, setCenterY, setRadius, setRotation, setRotationAround, setVertices, setVertices, setX, setXY, setY, sign, translate, triangleContains
add, clearPositionListeners, clearPositionListeners, clearSizeListeners, clearSizeListeners, getDistanceTo, moveTowards, moveTowards, notifyPositionListeners, notifyPositionListeners, notifySizeListeners, notifySizeListeners, removePositionListener, removePositionListener, removeSizeListener, removeSizeListener, setRotationAround, subtract
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
contains, contains, contains, getCenterX, getCenterY, getHeight, getMaxX, getMaxY, getMinX, getMinY, getNumberOfSides, getPolygon, getWidth, intersects, intersects, intersectsLineSegment, intersectsLineSegment, isCircle, scale, setCenter, setCenterX, setCenterY, setRadius
getDistanceTo, getDistanceTo, getX, getY, moveTowards, moveTowards, setX, setXY, setY
public QuadTreeAwareCollisionPolygon(float[] vertices)
public QuadTreeAwareCollisionPolygon(org.mini2Dx.gdx.math.Vector2[] vectors)
public QuadTreeAwareCollisionPolygon(int id, float[] vertices)
public QuadTreeAwareCollisionPolygon(int id, org.mini2Dx.gdx.math.Vector2[] vectors)
public QuadTreeAwareCollisionPolygon(CollisionPolygon polygon)
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.