physics::Capsule2D Class Reference

#include <capsule.h>

Inherits physics::Area.

List of all members.

Public Member Functions

 Capsule2D (Vector2D p1, Vector2D p2, float r)
 Constructor.
float x1 () const
 Returns x coordinate of the first position.
float y1 () const
 Returns y coordinate of the first position.
float x2 () const
 Returns x coordinate of the second position.
float y2 () const
 Returns y coordinate of the second position.
Vector2D getP1 () const
 Return the first position.
Vector2D getP2 () const
 Return the second position.
float getLength () const
 Get method for the length of the straight segment.
float getLengthSq () const
 Get method for the length of the straight segment squared.
float getMOI () const
 Get the Moment of Inertia.


Detailed Description

Provides the capsule shape in the 2D simulation

Member Function Documentation

float physics::Capsule2D::getLength (  )  const [inline]

Get method for the length of the straight segment.

Returns:
Float; Length of the straight segment

float physics::Capsule2D::getLengthSq (  )  const [inline]

Get method for the length of the straight segment squared.

Returns:
Float; Length of the straight segment squared


The documentation for this class was generated from the following file:

Generated on Thu Apr 23 22:51:40 2009 for Large Polygon Collider - Modular 2D/3D Physics Engine by  doxygen 1.5.6