public class ShapeCollisionChecker extends BaseCollisionChecker
| Constructor and Description |
|---|
ShapeCollisionChecker() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
checkCollision(float[] pVerticesA,
int pVertexCountA,
float[] pVerticesB,
int pVertexCountB)
Calls through to
checkCollisionSub(float[], int, int, int, int, int, float[], int, int, int, int) with the default parameters internally used by different AndEngine primitives. |
static boolean |
checkCollision(float[] pVerticesA,
int pVertexCountA,
int pVertexOffsetXA,
int pVertexOffsetYA,
int pVertexStrideA,
float[] pVerticesB,
int pVertexCountB,
int pVertexOffsetXB,
int pVertexOffsetYB,
int pVertexStrideB) |
static boolean |
checkContains(float[] pVertices,
int pVertexCount,
float pX,
float pY)
Calls through to
checkContains(float[], int, int, int, int, float, float) with the default parameters internally used by different AndEngine primitives. |
static boolean |
checkContains(float[] pVertices,
int pVertexCount,
int pVertexOffsetX,
int pVertexOffsetY,
int pVertexStride,
float pX,
float pY)
Works with complex polygons!
|
checkAxisAlignedRectangleCollision, checkAxisAlignedRectangleContains, relativeCCWpublic static boolean checkCollision(float[] pVerticesA,
int pVertexCountA,
float[] pVerticesB,
int pVertexCountB)
checkCollisionSub(float[], int, int, int, int, int, float[], int, int, int, int) with the default parameters internally used by different AndEngine primitives.pVerticesA - pVertexCountA - the number of vertices in pVerticesApVerticesB - pVertexCountB - the number of vertices in pVerticesBpublic static boolean checkCollision(float[] pVerticesA,
int pVertexCountA,
int pVertexOffsetXA,
int pVertexOffsetYA,
int pVertexStrideA,
float[] pVerticesB,
int pVertexCountB,
int pVertexOffsetXB,
int pVertexOffsetYB,
int pVertexStrideB)
pVerticesA - pVertexCountA - the number of vertices in pVerticesApVertexOffsetXA - pVertexOffsetYA - pVertexStrideA - pVerticesB - pVertexCountB - the number of vertices in pVerticesBpVertexOffsetXB - pVertexOffsetYB - pVertexStrideB - public static boolean checkContains(float[] pVertices,
int pVertexCount,
float pX,
float pY)
checkContains(float[], int, int, int, int, float, float) with the default parameters internally used by different AndEngine primitives.pVertices - pVertexCount - the number of vertices in pVerticespX - pY - public static boolean checkContains(float[] pVertices,
int pVertexCount,
int pVertexOffsetX,
int pVertexOffsetY,
int pVertexStride,
float pX,
float pY)
pVertices - pVertexCount - the number of vertices in pVerticespVertexOffsetX - pVertexOffsetY - pVertexStride - pX - pY - true when the point defined by (pX, pY) is inside the polygon defined by pVertices, false. If the point is exactly on the edge of the polygon, the result can be true or false.http://alienryderflex.com/polygon/