public class

RectangularShapeCollisionChecker

extends ShapeCollisionChecker
java.lang.Object
   ↳ org.andengine.util.algorithm.collision.BaseCollisionChecker
     ↳ org.andengine.util.algorithm.collision.ShapeCollisionChecker
       ↳ org.andengine.util.algorithm.collision.RectangularShapeCollisionChecker

Class Overview

(c) 2010 Nicolas Gramlich (c) 2011 Zynga Inc.

Summary

Constants
int RECTANGULARSHAPE_VERTEX_COUNT
Public Constructors
RectangularShapeCollisionChecker()
Public Methods
static boolean checkCollision(RectangularShape pRectangularShapeA, RectangularShape pRectangularShapeB)
static boolean checkCollision(RectangularShape pRectangularShape, Line pLine)
static boolean checkContains(float pLocalX, float pLocalY, float pLocalWidth, float pLocalHeight, Transformation pLocalToSceneTransformation, float pX, float pY)
static boolean checkContains(Entity pEntity, float pLocalWidth, float pLocalHeight, 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)
[Expand]
Inherited Methods
From class org.andengine.util.algorithm.collision.ShapeCollisionChecker
From class org.andengine.util.algorithm.collision.BaseCollisionChecker
From class java.lang.Object

Constants

public static final int RECTANGULARSHAPE_VERTEX_COUNT

Constant Value: 4 (0x00000004)

Public Constructors

public RectangularShapeCollisionChecker ()

Public Methods

public static boolean checkCollision (RectangularShape pRectangularShapeA, RectangularShape pRectangularShapeB)

public static boolean checkCollision (RectangularShape pRectangularShape, Line pLine)

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 void fillVertices (float pLocalX, float pLocalY, float pLocalWidth, float pLocalHeight, Transformation pLocalToSceneTransformation, float[] pVertices)

public static void fillVertices (RectangularShape pRectangularShape, float[] pVertices)

public static boolean isVisible (Camera pCamera, float pX, float pY, float pWidth, float pHeight, Transformation pLocalToSceneTransformation)

public static boolean isVisible (Camera pCamera, Line pLine)

public static boolean isVisible (Camera pCamera, RectangularShape pRectangularShape)