Untold Engine  Beta v0.0.16
docs
U4DEngine::U4DTransformation Class Reference

The U4DTransformation class manages the transformation of all entities. More...

Inherits U4DEngine::U4DTransformationManagerInterface.

Public Member Functions

 U4DTransformation (U4DEntity *uUObject)
 class constructor More...
 
 ~U4DTransformation ()
 class destructor
 
void updateSpaceMatrixPosition (U4DQuaternion &translation)
 updates the space matrix (position) More...
 
void updateSpaceMatrixOrientation (U4DQuaternion &orientation)
 updates the space matrix (orientation) More...
 
void translateTo (U4DVector3n &translation)
 Method which translates entity to a new position. More...
 
void translateTo (float x, float y, float z)
 Method which translates entity to a new position. More...
 
void translateTo (U4DVector2n &translation)
 Method which translates entity to a new position. More...
 
void translateBy (U4DVector3n &translation)
 Method which translates entity by a certain amount. More...
 
void translateBy (float x, float y, float z)
 Method which translates entity by certain amount. More...
 
void rotateTo (U4DQuaternion &rotation)
 Method which rotates entity to a new orientation. More...
 
void rotateTo (U4DMatrix3n &uRotationMatrix)
 rotates to a new orientation More...
 
void rotateTo (float angle, U4DVector3n &axis)
 Method which rotates entity to a new orientation. More...
 
void rotateTo (float angleX, float angleY, float angleZ)
 Method which rotates entity to a new orientation. More...
 
void rotateBy (U4DQuaternion &rotation)
 Method which rotates entity by a certain amount. More...
 
void rotateBy (float angle, U4DVector3n &axis)
 Method which rotates entity by certain amount. More...
 
void rotateBy (float angleX, float angleY, float angleZ)
 Method which rotates entity by a certain amount. More...
 
void rotateAboutAxis (float angle, U4DVector3n &axisOrientation, U4DVector3n &axisPosition)
 Method which rotates entity about an axis. More...
 
void rotateAboutAxis (U4DQuaternion &uOrientation, U4DVector3n &axisPosition)
 Method which rotates entity about an axis. More...
 
- Public Member Functions inherited from U4DEngine::U4DTransformationManagerInterface
 ~U4DTransformationManagerInterface ()
 interface destructor
 

Detailed Description

The U4DTransformation class manages the transformation of all entities.

Constructor & Destructor Documentation

◆ U4DTransformation()

U4DEngine::U4DTransformation::U4DTransformation ( U4DEntity uUObject)

class constructor

Parameters
uUObjectpointer to entity

Member Function Documentation

◆ rotateAboutAxis() [1/2]

void U4DEngine::U4DTransformation::rotateAboutAxis ( float  angle,
U4DVector3n axisOrientation,
U4DVector3n axisPosition 
)
virtual

Method which rotates entity about an axis.

Parameters
angleAngle representing rotation
axisOrientationAxis of rotation
axisPositionPosition of rotation axis

Implements U4DEngine::U4DTransformationManagerInterface.

◆ rotateAboutAxis() [2/2]

void U4DEngine::U4DTransformation::rotateAboutAxis ( U4DQuaternion uOrientation,
U4DVector3n axisPosition 
)

Method which rotates entity about an axis.

Parameters
uOrientationOrientation to rotate
axisPositionPosition of axis

◆ rotateBy() [1/3]

void U4DEngine::U4DTransformation::rotateBy ( float  angle,
U4DVector3n axis 
)
virtual

Method which rotates entity by certain amount.

Parameters
angleAngle of rotation
axisAxis of rotation

Implements U4DEngine::U4DTransformationManagerInterface.

◆ rotateBy() [2/3]

void U4DEngine::U4DTransformation::rotateBy ( float  angleX,
float  angleY,
float  angleZ 
)
virtual

Method which rotates entity by a certain amount.

Parameters
angleXAngle of rotation along x-axis
angleYAngle of rotation along y-axis
angleZAngle of rotation along z-axis

Implements U4DEngine::U4DTransformationManagerInterface.

◆ rotateBy() [3/3]

void U4DEngine::U4DTransformation::rotateBy ( U4DQuaternion rotation)
virtual

Method which rotates entity by a certain amount.

Parameters
rotationQuaternion representing orientation

Implements U4DEngine::U4DTransformationManagerInterface.

◆ rotateTo() [1/4]

void U4DEngine::U4DTransformation::rotateTo ( float  angle,
U4DVector3n axis 
)
virtual

Method which rotates entity to a new orientation.

Parameters
angleAngle of rotation
axisAsis of rotation

Implements U4DEngine::U4DTransformationManagerInterface.

◆ rotateTo() [2/4]

void U4DEngine::U4DTransformation::rotateTo ( float  angleX,
float  angleY,
float  angleZ 
)
virtual

Method which rotates entity to a new orientation.

Parameters
angleXAngle of rotation along the x-axis
angleYAngle of rotation along the y-axis
angleZAngle of rotation along the z-axis

Implements U4DEngine::U4DTransformationManagerInterface.

◆ rotateTo() [3/4]

void U4DEngine::U4DTransformation::rotateTo ( U4DMatrix3n uRotationMatrix)
virtual

rotates to a new orientation

Parameters
uRotationMatrixmatrix representing the orientation

Implements U4DEngine::U4DTransformationManagerInterface.

◆ rotateTo() [4/4]

void U4DEngine::U4DTransformation::rotateTo ( U4DQuaternion rotation)
virtual

Method which rotates entity to a new orientation.

Parameters
rotationQuaternion representing orientation

Implements U4DEngine::U4DTransformationManagerInterface.

◆ translateBy() [1/2]

void U4DEngine::U4DTransformation::translateBy ( float  x,
float  y,
float  z 
)
virtual

Method which translates entity by certain amount.

Parameters
xTranslaiion along x-coordinate
yTranslation along y-coordinate
zTranslation along z-coordinate

Implements U4DEngine::U4DTransformationManagerInterface.

◆ translateBy() [2/2]

void U4DEngine::U4DTransformation::translateBy ( U4DVector3n translation)

Method which translates entity by a certain amount.

Parameters
translation3D vector offset translation

◆ translateTo() [1/3]

void U4DEngine::U4DTransformation::translateTo ( float  x,
float  y,
float  z 
)
virtual

Method which translates entity to a new position.

Parameters
xTranslation along x-coordinate
yTranslation along y-coordinate
zTranalation along z-coordinate

Implements U4DEngine::U4DTransformationManagerInterface.

◆ translateTo() [2/3]

void U4DEngine::U4DTransformation::translateTo ( U4DVector2n translation)
virtual

Method which translates entity to a new position.

Parameters
translation2D vector translation

Implements U4DEngine::U4DTransformationManagerInterface.

◆ translateTo() [3/3]

void U4DEngine::U4DTransformation::translateTo ( U4DVector3n translation)
virtual

Method which translates entity to a new position.

Parameters
translation3D vector translation

Implements U4DEngine::U4DTransformationManagerInterface.

◆ updateSpaceMatrixOrientation()

void U4DEngine::U4DTransformation::updateSpaceMatrixOrientation ( U4DQuaternion orientation)

updates the space matrix (orientation)

Parameters
orientationorientation quaternion

◆ updateSpaceMatrixPosition()

void U4DEngine::U4DTransformation::updateSpaceMatrixPosition ( U4DQuaternion translation)

updates the space matrix (position)

Parameters
translationposition quaternion