RenderWare V2.1

Previous Page Index Next Page

RwMatrix4d *

RwScaleMatrix(RwMatrix4d *matrix, RwReal sx, RwReal sy, RwReal sz, RwCombineOperation op);

Description

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

Arguments

matrix Pointer to the matrix.

sx Scale factor in the X axis.

sy Scale factor in the Y axis.

sz Scale factor in the Z axis.

op Combination operator.

Return Value

The argument matrix if successful, and NULL otherwise.

Comments

Note that if no scaling is to be applied CREAL(1.0) should be specified rather than CREAL(0.0).

See Also

RwIdentityMatrix()

RwInvertMatrix()

RwMultiplyMatrix()

RwOrthoNormalizeMatrix()

RwRotateMatrix()

RwRotateMatrixCos()

RwScaleCTM()

RwTransformMatrix()

RwTranslateMatrix()