TransformArray Class Reference
#include <TransformArray.h>
Description
A quicker and tinier alternative to TransformMatrix, but must eventually be converted to a matrix for the renderer to process it.
Functions | |
TransformMatrix | Compose () |
TransformArray | Lerp (const TransformArray &, float amt) |
void | Reset () |
void | RotateByAxis (const Dynacoe::Vector &axisVector, float amountDegrees) |
void | Translate (float x, float y, float z) |
void | Scale (float x, float y, float z) |
Dynacoe::Vector | GetTranslation () |
Dynacoe::Vector | GetScale () |
Dynacoe::Vector | GetRotation () |
Dynacoe::Chain | Print () |
Member Function Documentation
TransformMatrix Compose | ( | ) |
Returns a reduction of the TransformArray into an equivalent TransformMatrix.
TransformArray Lerp | ( | const TransformArray & | , |
float | amt | ||
) |
Linearly interpolates between two transforms.
void Reset | ( | ) |
Sets the transform to a default state.
void RotateByAxis | ( | const Dynacoe::Vector & | axisVector, |
float | amountDegrees | ||
) |
Rotates the TransformArray about an axis.
- Parameters
-
axisVector Defines the rotation axisVector. The line created by Vector(0, 0, 0) and the point axisVector creates the axis to rotate about. amountDegrees The rotation amount to perform.
void Translate | ( | float | x, |
float | y, | ||
float | z | ||
) |
Express a translation to apply to the transform in the x, y, and z directions.
void Scale | ( | float | x, |
float | y, | ||
float | z | ||
) |
Express a scaling transformation to apply to the transform in the x, y, and z directions.
Dynacoe::Vector GetTranslation | ( | ) |
Returns the total translation.
Dynacoe::Vector GetScale | ( | ) |
Returns the scale.
Dynacoe::Vector GetRotation | ( | ) |
Returns a reduction of the quaternion into euler angles: psi, theta, and phi respectively.
Dynacoe::Chain Print | ( | ) |
Returns a string containing infor on the state of the transform.
The documentation for this class was generated from the following file:
- /home/jc/git/Dynacoe/DynacoeSrc/includes/Dynacoe/Util/TransformArray.h