Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   Related Pages  

rdBodyConstraint Class Reference

A class for specifiying point constraints on a body. More...

#include <rdBodyConstraint.h>

List of all members.

Public Member Functions

virtual ~rdBodyConstraint ()
 Destructor.

 rdBodyConstraint ()
 Constructor.

int getNC ()
 Get the number of non-zero constraint directions.

void setID (int aID)
 Set the ID of this body constraint.

int getID ()
 Get the ID of this body constraint.

rdPointConstraintgetPC (int aI)
 Get a pointer to a point constraint.

void setValues (int aN, int aID[], double aV[][3])
 Scan a list of point id's and set constraint values for any matching point constraints.

void constructConstraintsForPoint1 ()
 Construct the constraint directions for point 1.

void constructConstraintsForPoint2 ()
 Construct the constraint directions for point 2.

double * findMostOrthogonal (rdPointConstraint *aPC, double aV[3])
 Find the constraint direction in the provided point constraint that is most orthogonal to the provided vector.

void clear ()
 Clear all point constraints.

void clearValues ()
 Clear all constraint values.


Public Attributes

int _id
rdPointConstraint _pc [3]


Detailed Description

A class for specifiying point constraints on a body.

Author:
Frank C. Anderson
Version:
1.0


Member Function Documentation

void rdBodyConstraint::clear  ) 
 

Clear all point constraints.

See also:
rdPointConstraint::clear();

void rdBodyConstraint::constructConstraintsForPoint1  ) 
 

Construct the constraint directions for point 1.

Two constraint directions are set for point 1 orthogonal to the vector directed from point 0 to point 1.

Note that it is assumed that the constraint directions for point 0 have already been set properly.

void rdBodyConstraint::constructConstraintsForPoint2  ) 
 

Construct the constraint directions for point 2.

One constraint direction is set for point 2 orthogonal to the vector directed from point 0 to point 1 and the vector from point 1 to point 2.

Note that it is assumed that the constraint directions for point 0 and Point 1 have already been set properly.

int rdBodyConstraint::getID  ) 
 

Get the ID of this body constraint.

Returns:
ID of this body constraint.

int rdBodyConstraint::getNC  ) 
 

Get the number of non-zero constraint directions.

Returns:
Number of non-zero constraint directions.

rdPointConstraint * rdBodyConstraint::getPC int  aI  ) 
 

Get a pointer to a point constraint.

Parameters:
aI Index of the desired point constraint.
Returns:
Pointer to point constraint at index position aI.

void rdBodyConstraint::setID int  aID  ) 
 

Set the ID of this body constraint.

Parameters:
aID ID of this body constraint.


The documentation for this class was generated from the following files:
Generated on Wed Aug 20 02:17:09 2003 for Simulation Software by doxygen1.3