public class Quad
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
CHILD_BOTTOM_LEFT_OFFSET |
static int |
CHILD_BOTTOM_RIGHT_OFFSET |
static int |
CHILD_TOP_LEFT_OFFSET |
static int |
CHILD_TOP_RIGHT_OFFSET |
int |
childIndex |
QuadElementBounds |
elementBounds |
int |
elementsIndex |
int |
index |
static int |
INITIAL_POOL_SIZE |
float |
maxX |
float |
maxY |
int |
parentIndex |
float |
x |
float |
y |
| Constructor and Description |
|---|
Quad() |
| Modifier and Type | Method and Description |
|---|---|
static Quad |
allocate() |
boolean |
contains(float x,
float y) |
void |
dispose() |
boolean |
elementsContain(org.mini2Dx.gdx.math.Vector2 v) |
boolean |
elementsIntersect(LineSegment lineSegment) |
boolean |
elementsOverlap(float minX,
float minY,
float maxX,
float maxY) |
boolean |
elementsOverlap(Rectangle rectangle) |
boolean |
elementsOverlapIgnoringEdges(float rectMinX,
float rectMinY,
float rectMaxX,
float rectMaxY) |
boolean |
elementsOverlapIgnoringEdges(Rectangle rectangle) |
float |
getCenterX() |
float |
getCenterY() |
float |
getHeight() |
float |
getWidth() |
void |
reset() |
public static final int CHILD_TOP_LEFT_OFFSET
public static final int CHILD_TOP_RIGHT_OFFSET
public static final int CHILD_BOTTOM_LEFT_OFFSET
public static final int CHILD_BOTTOM_RIGHT_OFFSET
public static final int INITIAL_POOL_SIZE
public float x
public float y
public float maxX
public float maxY
public QuadElementBounds elementBounds
public int index
public int parentIndex
public int elementsIndex
public int childIndex
public boolean contains(float x,
float y)
public boolean elementsOverlap(Rectangle rectangle)
public boolean elementsOverlap(float minX,
float minY,
float maxX,
float maxY)
public boolean elementsOverlapIgnoringEdges(Rectangle rectangle)
public boolean elementsOverlapIgnoringEdges(float rectMinX,
float rectMinY,
float rectMaxX,
float rectMaxY)
public boolean elementsIntersect(LineSegment lineSegment)
public boolean elementsContain(org.mini2Dx.gdx.math.Vector2 v)
public static Quad allocate()
public void reset()
public void dispose()
public float getWidth()
public float getHeight()
public float getCenterX()
public float getCenterY()