#include <Flek/FTransformation.H>
Class for transformations (translation, scaling, rotation).
FTransformation::FTransformation();
Default constructor.FTransformation::FTransformation(const FTransformation& tr);
Copy constructor.FTransformation::FTransformation(const FMatrix4x4& mat);
Construct from a matrix
void FTransformation::apply(void);
Apply the FTransformation in OpenGL. Calls only glMultMatrix.
void FTransformation::invert(void);
Invert the FTransformation matrix.
FMatrix4x4 FTransformation::matrix(void);
Get the FTransformation matrix.
void FTransformation::operator *=(const FTransformation& tr);
Combining two FTransformations. Post-multiply with given FTransformation.void FTransformation::operator *=(const FMatrix4x4& mat);
Combining FTransformation and matrix. Post-multiply with given matrix.
void FTransformation::operator /=(const FTransformation& tr);
Pre-multiply with given FTransformation/matrix The operator chosen is not the most intuitive, but the only one that makes some kind of sensevoid FTransformation::operator /=(const FMatrix4x4& mat);
Pre-multiply with given FTransformation/matrix The operator chosen is not the most intuitive, but the only one that makes some kind of sense.
FTransformation& FTransformation::operator =(const FTransformation& tr);
Assignment operator.
void FTransformation::post_rotate(const FQuaternion& quat);
Rotate according to the rotation specified by the FQuaternion.
void FTransformation::post_translate(const FVector3& t);
Apply FTransformations - post-multiply
void FTransformation::reset(void);
Reset the FTransformation matrix.
void FTransformation::rotate(const FQuaternion& quat);
Rotate according to the rotation specified by the FQuaternion.
static FMatrix4x4 FTransformation::rotation_x(double angle);
Static function to compute rotation matrix about the x axis.
static FMatrix4x4 FTransformation::rotation_y(double angle);
Static function to compute rotation matrix about the y axis.
static FMatrix4x4 FTransformation::rotation_z(double angle);
Static function to compute rotation matrix about the z axis.
static FMatrix4x4 FTransformation::scaling(const FVector3& s);
Static function to compute scale matrix from a vector.static FMatrix4x4 FTransformation::scaling(double sx, double sy, double sz);
Static function to compute scale matrix from x, y, z values.
void FTransformation::set(const FMatrix4x4 mat);
Set the FTransformation matrix.
static FMatrix4x4 FTransformation::translation(const FVector3& t);
Static function to compute translation matrix from a vector.static FMatrix4x4 FTransformation::translation(double tx, double ty, double tz);
Static function to compute translation matrix from x, y, z values.
FTransformation::~FTransformation();
Destructor.