C# Class andengine.collision.ShapeCollisionChecker

Inheritance: BaseCollisionChecker
ファイルを表示 Open project: jamesburton/AndEngine.net Class Usage Examples

Public Methods

Method Description
CheckCollision ( int pVerticesALength, int pVerticesBLength, float pVerticesA, float pVerticesB ) : bool
CheckContains ( float pVertices, int pVerticesLength, float pX, float pY ) : bool
ConvertLocalToSceneCoordinates ( andengine.entity.shape.Shape pShape, float pX, float pY ) : float[]
ConvertSceneToLocalCoordinates ( andengine.entity.shape.Shape pShape, float pX, float pY ) : float[]

Private Methods

Method Description
CheckCollisionSub ( int pVertexIndexA1, int pVertexIndexA2, float pVerticesA, float pVerticesB, int pVerticesBLength ) : bool

Method Details

CheckCollision() public static method

public static CheckCollision ( int pVerticesALength, int pVerticesBLength, float pVerticesA, float pVerticesB ) : bool
pVerticesALength int
pVerticesBLength int
pVerticesA float
pVerticesB float
return bool

CheckContains() public static method

public static CheckContains ( float pVertices, int pVerticesLength, float pX, float pY ) : bool
pVertices float
pVerticesLength int
pX float
pY float
return bool

ConvertLocalToSceneCoordinates() public static method

public static ConvertLocalToSceneCoordinates ( andengine.entity.shape.Shape pShape, float pX, float pY ) : float[]
pShape andengine.entity.shape.Shape
pX float
pY float
return float[]

ConvertSceneToLocalCoordinates() public static method

public static ConvertSceneToLocalCoordinates ( andengine.entity.shape.Shape pShape, float pX, float pY ) : float[]
pShape andengine.entity.shape.Shape
pX float
pY float
return float[]