b2PolygonShape Class Reference

A convex polygon. More...

Inheritance diagram for b2PolygonShape:

b2Shape

List of all members.

Public Member Functions

bool TestPoint (const b2XForm &transform, const b2Vec2 &p) const
 
See also:
b2Shape::TestPoint

bool TestSegment (const b2XForm &transform, float32 *lambda, b2Vec2 *normal, const b2Segment &segment, float32 maxLambda) const
 
See also:
b2Shape::TestSegment

void ComputeAABB (b2AABB *aabb, const b2XForm &transform) const
 
See also:
b2Shape::ComputeAABB

void ComputeSweptAABB (b2AABB *aabb, const b2XForm &transform1, const b2XForm &transform2) const
 
See also:
b2Shape::ComputeSweptAABB

void ComputeMass (b2MassData *massData) const
 
See also:
b2Shape::ComputeMass

const b2OBBGetOBB () const
 Get the oriented bounding box relative to the parent body.
const b2Vec2GetCentroid () const
 Get local centroid relative to the parent body.
int32 GetVertexCount () const
 Get the vertex count.
const b2Vec2GetVertices () const
 Get the vertices in local coordinates.
const b2Vec2GetCoreVertices () const
 Get the core vertices in local coordinates.


Detailed Description

A convex polygon.

Member Function Documentation

const b2Vec2 * b2PolygonShape::GetCoreVertices (  )  const [inline]

Get the core vertices in local coordinates.

These vertices represent a smaller polygon that is used for time of impact computations.


The documentation for this class was generated from the following files:
Generated on Fri Mar 7 23:58:18 2008 for Box2D by  doxygen 1.5.4