OpenLayer Offline Manual

OpenLayer | Collision | GetAllPoints GetAllPoints
const std::vector< Vec2D > &GetAllPoints() const
Returns all collision points. There might be more than one collision point in some cases, if several parts of the objects collide at the same time. Examples Collision collision = ...; // Get all collision points // const std::vector< Vec2D > &collisionPoints = collision.GetAllPoints(); Other functions of the class Collision
GetPoint | Returns the exact point of the collision
GetSegment | Returns the specified colliding line segment
IsCollision | Returns true if a collision has really happened
GetNormal | Returns the normal of a colliding object at the collision point
GetAllPoints | Returns all collision points
GetAllSegments | Returns all pairs of colliding segments
Back to the main page of the manual Questions about GetAllPoints? Click here.