public class RectangularShapeCollisionChecker extends ShapeCollisionChecker
| Modifier and Type | Field and Description |
|---|---|
static int |
RECTANGULARSHAPE_VERTEX_COUNT |
| Constructor and Description |
|---|
RectangularShapeCollisionChecker() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
checkCollision(RectangularShape pRectangularShape,
Line pLine) |
static boolean |
checkCollision(RectangularShape pRectangularShapeA,
RectangularShape pRectangularShapeB) |
static boolean |
checkContains(Entity pEntity,
float pLocalWidth,
float pLocalHeight,
float pX,
float pY) |
static boolean |
checkContains(float pLocalX,
float pLocalY,
float pLocalWidth,
float pLocalHeight,
Transformation pLocalToSceneTransformation,
float pX,
float pY) |
static boolean |
checkContains(RectangularShape pRectangularShape,
float pX,
float pY) |
static void |
fillVertices(float pLocalX,
float pLocalY,
float pLocalWidth,
float pLocalHeight,
Transformation pLocalToSceneTransformation,
float[] pVertices) |
static void |
fillVertices(RectangularShape pRectangularShape,
float[] pVertices) |
static boolean |
isVisible(Camera pCamera,
float pX,
float pY,
float pWidth,
float pHeight,
Transformation pLocalToSceneTransformation) |
static boolean |
isVisible(Camera pCamera,
Line pLine) |
static boolean |
isVisible(Camera pCamera,
RectangularShape pRectangularShape) |
checkCollision, checkCollision, checkContains, checkContainscheckAxisAlignedRectangleCollision, checkAxisAlignedRectangleContains, relativeCCWpublic static final int RECTANGULARSHAPE_VERTEX_COUNT
public static boolean checkContains(float pLocalX,
float pLocalY,
float pLocalWidth,
float pLocalHeight,
Transformation pLocalToSceneTransformation,
float pX,
float pY)
public static boolean checkContains(Entity pEntity, float pLocalWidth, float pLocalHeight, float pX, float pY)
public static boolean checkContains(RectangularShape pRectangularShape, float pX, float pY)
public static boolean isVisible(Camera pCamera, RectangularShape pRectangularShape)
public static boolean isVisible(Camera pCamera, float pX, float pY, float pWidth, float pHeight, Transformation pLocalToSceneTransformation)
public static boolean checkCollision(RectangularShape pRectangularShapeA, RectangularShape pRectangularShapeB)
public static boolean checkCollision(RectangularShape pRectangularShape, Line pLine)
public static void fillVertices(RectangularShape pRectangularShape, float[] pVertices)
public static void fillVertices(float pLocalX,
float pLocalY,
float pLocalWidth,
float pLocalHeight,
Transformation pLocalToSceneTransformation,
float[] pVertices)