#include <JointVector.h>
Inheritance diagram for OSCAR::JointVector:

Public Methods | |
| JointVector (unsigned int size, const double *array=0) | |
| JointVector (unsigned int size, const CoordinateStatusArray &statArray, OSCARError &err=DUMMY_ERROR(noError)) | |
| JointVector (const JointVector &rhs) | |
| virtual | ~JointVector () |
| JointVector & | operator= (const JointVector &rhs) |
| JointVector & | operator= (const Vector &rhs) |
| JointVector & | operator= (const double rhs) |
| bool | Add (JointVector &j, JointVector &result) |
|
||||||||||||
|
Constructor. This is the constructor for an object of type JointVector. Use this to construct an JointVector object of length 'size', and a pointer to an array of type double. By default, the array pointer is null, and the status of all joints is set to Active.
|
|
||||||||||||||||
|
Constructor. This is the constructor for an object of type JointVector. Use this to construct an JointVector object of length 'size', and intialize the status of each joint (whether Active or Inactive) according to the contents of the statArray. An OSCARError object can also be passed in. An error occurs when the argument size is not equal to the size of statArray. This function will crash if size = 0.
|
|
|
Copy Constructor. This is the Copy Constructor for an object of type JointVector. Use this to create an JointVector object from an existing JointVector object.
|
|
|
Destructor. This is the destructor for an object of type JointVector. |
|
||||||||||||
|
Add JointVectors. Method adds the elements of compatible JointVectors. JointVectors are compatible if and only if they are the same size AND have the same active joints. (Note: since the '+' operator is not overridden for a JointVector and therefore returns a vectorNumeric object and any coordinateStatus information from the added JointVectors is lost in the result.
|
|
|
Assignment Operator. Sets all elements of JointVector to the argument.
Reimplemented from OSCAR::CoordinateVector. |
|
|
Assignment Operator. Copies one elements from Vector into JointVector.
Reimplemented from OSCAR::CoordinateVector. |
|
|
Assignment Operator. This is the assignment operator for an object of type JointVector. Use this to copy one JointVector object into another. If the size of the objects does not match, then the object being copied into the LHS is modified to match the RHS.
|
| RRG Homepage | OSCAR Overview | OSCAR Tutorials | Simulations |