Victor
|
This class allows to store transformation steps for transforming a vector v into v' according to the series of steps performed earlier. More...
Public Member Functions | |
VectorTransformation () | |
VectorTransformation (const VectorTransformation &orig) | |
virtual | ~VectorTransformation () |
void | addAlignVectors (vgVector3< float > v1, vgVector3< float > v2) |
void | addRot (vgMatrix3< float > rm) |
void | addTrans (vgVector3< float > t) |
void | clear () |
void | copy (const VectorTransformation &orig) |
VectorTransformation & | operator= (const VectorTransformation &orig) |
vgVector3< float > | transform (vgVector3< float > orig) |
This class allows to store transformation steps for transforming a vector v into v' according to the series of steps performed earlier.
basic constructor
VectorTransformation | ( | const VectorTransformation & | orig | ) |
Constructor that copies a original vector transformation
|
virtual |
basic destructor
void addAlignVectors | ( | vgVector3< float > | v1, |
vgVector3< float > | v2 | ||
) |
Adds the new aligned vector by rotation
the | two vectors to align(vgVector3<float> ,vgVector3<float> ) |
void addRot | ( | vgMatrix3< float > | rm | ) |
Adds rotation
matrix | to rotate(vgMatrix3<float>) |
void addTrans | ( | vgVector3< float > | t | ) |
Adds translation
matrix | to rotate(vgVector3<float>) |
void clear | ( | ) |
Clears the object data
none |
void copy | ( | const VectorTransformation & | orig | ) |
Copies the original vector transformation
original | vector transformation |
VectorTransformation & operator= | ( | const VectorTransformation & | orig | ) |
Assigns a transformation vector into another one.
reference | to the original transformation vector(VectorTransformation& ) |
vgVector3< float > transform | ( | vgVector3< float > | orig | ) |
transform the original vector
original | vector(vgVector3<float> ) |