physics::Line Class Reference

#include <line.h>

Inherits physics::Area.

List of all members.

Public Member Functions

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 line.
float getLengthSq () const
 Get method for the length of the line squared.
float getMOI () const
 Get the Moment of Inertia.


Detailed Description

Provides the line shape in the 2D simulation

Member Function Documentation

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

Get method for the length of the line.

Returns:
Float; Length of the line

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

Get method for the length of the line squared.

Returns:
Float; Length of the line squared

float physics::Line::getMOI (  )  const [inline]

Get the Moment of Inertia.

Returns:
Float; Moment of Inertia


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