The Fast Light Environment Kit



class FTransformation

Include Files

#include <Flek/FTransformation.H>

Description

Class for transformations (translation, scaling, rotation).

Methods


Method Descriptions

FTransformation

FTransformation::FTransformation();

Default constructor.

FTransformation::FTransformation(const FTransformation& tr);

Copy constructor.

FTransformation::FTransformation(const FMatrix4x4& mat);

Construct from a matrix

apply

void FTransformation::apply(void);

Apply the FTransformation in OpenGL. Calls only glMultMatrix.

invert

void FTransformation::invert(void);

Invert the FTransformation matrix.

matrix

FMatrix4x4 FTransformation::matrix(void);

Get the FTransformation matrix.

operator *=

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.

operator /=

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 sense

void 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.

operator =

FTransformation& FTransformation::operator =(const FTransformation& tr);

Assignment operator.

post_rotate

void FTransformation::post_rotate(const FQuaternion& quat);

Rotate according to the rotation specified by the FQuaternion.

post_translate

void FTransformation::post_translate(const FVector3& t);

Apply FTransformations - post-multiply

reset

void FTransformation::reset(void);

Reset the FTransformation matrix.

rotate

void FTransformation::rotate(const FQuaternion& quat);

Rotate according to the rotation specified by the FQuaternion.

rotation_x

static FMatrix4x4 FTransformation::rotation_x(double angle);

Static function to compute rotation matrix about the x axis.

rotation_y

static FMatrix4x4 FTransformation::rotation_y(double angle);

Static function to compute rotation matrix about the y axis.

rotation_z

static FMatrix4x4 FTransformation::rotation_z(double angle);

Static function to compute rotation matrix about the z axis.

scaling

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.

set

void FTransformation::set(const FMatrix4x4 mat);

Set the FTransformation matrix.

translation

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::~FTransformation();

Destructor.

© 2000 the Flek Development team.
Generated by ScanDoc
Last Updated: Tue May 15 8:50:06 2001