Known Direct Subclasses
|
Class Overview
(c) 2010 Nicolas Gramlich
(c) 2011 Zynga Inc.
Summary
Public Methods |
static
boolean
|
checkCollision(float[] pVerticesA, int pVertexCountA, float[] pVerticesB, int pVertexCountB)
Calls through to ShapeCollisionChecker#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, int pVertexOffsetX, int pVertexOffsetY, int pVertexStride, float pX, float pY)
Works with complex polygons!
|
static
boolean
|
checkContains(float[] pVertices, int pVertexCount, float pX, float pY)
|
[Expand]
Inherited Methods |
From class
org.andengine.util.algorithm.collision.BaseCollisionChecker
static
boolean
|
checkAxisAlignedRectangleCollision(float pLeftA, float pTopA, float pRightA, float pBottomA, float pLeftB, float pTopB, float pRightB, float pBottomB)
|
static
boolean
|
checkAxisAlignedRectangleContains(float pLeft, float pTop, float pRight, float pBottom, float pX, float pY)
|
static
int
|
relativeCCW(float pX1, float pY1, float pX2, float pY2, float pPX, float pPY)
Returns an indicator of where the specified point (PX, PY) lies with
respect to the line segment from (X1, Y1) to (X2, Y2).
|
|
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
Public Constructors
public
ShapeCollisionChecker
()
Public Methods
public
static
boolean
checkCollision
(float[] pVerticesA, int pVertexCountA, float[] pVerticesB, int pVertexCountB)
Calls through to ShapeCollisionChecker#checkCollisionSub(float[], int, int, int, int, int, float[], int, int, int, int) with the default parameters internally used by different AndEngine primitives.
Parameters
pVertexCountA
| the number of vertices in pVerticesA |
pVertexCountB
| the number of vertices in pVerticesB |
public
static
boolean
checkCollision
(float[] pVerticesA, int pVertexCountA, int pVertexOffsetXA, int pVertexOffsetYA, int pVertexStrideA, float[] pVerticesB, int pVertexCountB, int pVertexOffsetXB, int pVertexOffsetYB, int pVertexStrideB)
Parameters
pVertexCountA
| the number of vertices in pVerticesA |
pVertexCountB
| the number of vertices in pVerticesB |
public
static
boolean
checkContains
(float[] pVertices, int pVertexCount, int pVertexOffsetX, int pVertexOffsetY, int pVertexStride, float pX, float pY)
Works with complex polygons!
Parameters
pVertexCount
| the number of vertices in pVertices |
Returns
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
.
See Also
- http://alienryderflex.com/polygon/
public
static
boolean
checkContains
(float[] pVertices, int pVertexCount, float pX, float pY)
Parameters
pVertexCount
| the number of vertices in pVertices |