RenderWare V2.1

Previous Page Index Next Page

RwMatrix4d *

RwTranslateMatrix(RwMatrix4d *matrix, RwReal tx, RwReal ty,
RwReal tz, RwCombineOperation op);

Description

Builds a translation matrix and applies it to matrix. The operation may be a pre-concatenation, post-concatenation, or replacement.

Arguments

matrix Pointer to the matrix.

tx Translation parallel to the X axis.

ty Translation parallel to the Y axis.

tz Translation parallel to the Z axis.

op Combination operator.

Return Value

The argument matrix if successful, and NULL otherwise.

See Also

RwIdentityMatrix()

RwInvertMatrix()

RwMultiplyMatrix()

RwOrthoNormalizeMatrix()

RwRotateMatrix()

RwRotateMatrixCos()

RwScaleMatrix()

RwTransformMatrix()

RwTranslateCTM()