CollisionShapeInstanceCapsule Class Reference

#include <rimCollisionShapeInstanceCapsule.h>

Inheritance diagram for CollisionShapeInstanceCapsule:

Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual void setTransformation (const Transformation3 &transformation)
 Set the transformation of this shape instance.
const Vector3getStartingPoint () const
const Vector3getEndingPoint () const
const Vector3getAxis () const
Real getHeight () const
 Get the height of the capsule's shaft.
Real getStartingRadius () const
 Get the starting radius of the capsule shape.
Real getEndingRadius () const
 Get the ending radius of the capsule shape.

Private Member Functions

 CollisionShapeInstanceCapsule (const CollisionShapeCapsule *capsule)
 Privately create a sphere instance from a pointer to a sphere shape.

Private Attributes

Vector3 point1
 The position of the capsule's starting point in object space.
Vector3 point2
 The position of the capsule's ending point in object space.
Vector3 axis
 The normalized vector from the capsule's starting point to ending point.
Real height
 The distance from the capsule's starting point to its ending point.
Real radius1
 The radius of the capsule at its starting point.
Real radius2
 The radius of the capsule at its ending point.

Friends

class CollisionShapeCapsule
 Make this instance class's base shape class a friend to facilitate private construction.


Constructor & Destructor Documentation

CollisionShapeInstanceCapsule::CollisionShapeInstanceCapsule ( const CollisionShapeCapsule capsule  )  [inline, private]

Privately create a sphere instance from a pointer to a sphere shape.


Member Function Documentation

virtual void CollisionShapeInstanceCapsule::setTransformation ( const Transformation3 transformation  )  [inline, virtual]

Set the transformation of this shape instance.

Implements CollisionShapeInstance.

const Vector3& CollisionShapeInstanceCapsule::getStartingPoint (  )  const [inline]

const Vector3& CollisionShapeInstanceCapsule::getEndingPoint (  )  const [inline]

const Vector3& CollisionShapeInstanceCapsule::getAxis (  )  const [inline]

Real CollisionShapeInstanceCapsule::getHeight (  )  const [inline]

Get the height of the capsule's shaft.

Real CollisionShapeInstanceCapsule::getStartingRadius (  )  const [inline]

Get the starting radius of the capsule shape.

Real CollisionShapeInstanceCapsule::getEndingRadius (  )  const [inline]

Get the ending radius of the capsule shape.


Friends And Related Function Documentation

friend class CollisionShapeCapsule [friend]

Make this instance class's base shape class a friend to facilitate private construction.


Member Data Documentation

Vector3 CollisionShapeInstanceCapsule::point1 [private]

The position of the capsule's starting point in object space.

Vector3 CollisionShapeInstanceCapsule::point2 [private]

The position of the capsule's ending point in object space.

Vector3 CollisionShapeInstanceCapsule::axis [private]

The normalized vector from the capsule's starting point to ending point.

Real CollisionShapeInstanceCapsule::height [private]

The distance from the capsule's starting point to its ending point.

Real CollisionShapeInstanceCapsule::radius1 [private]

The radius of the capsule at its starting point.

Real CollisionShapeInstanceCapsule::radius2 [private]

The radius of the capsule at its ending point.


The documentation for this class was generated from the following file:
Generated on Tue Aug 26 00:03:19 2008 for Rim Physics by  doxygen 1.5.4