nw::math::MTX44TextureMatrixForMax Function

Syntax

NW_MATH_INLINE MTX44 * MTX44TextureMatrixForMax(
     MTX44*       pOut,
     float scaleS,
     float scaleT,
     float rotate,
     float translateS,
     float translateT
);

Arguments

Name Description
out pOut Pointer to the buffer that receives the result of the calculation.
in scaleS Scale value along the s-axis.
in scaleT Scale value along the t-axis.
in rotate A rotation value.
in translateS Translation value along the s-axis.
in translateT Translation value along the t-axis.

Return Values

Returns pOut.

Description

Creates a texture coordinate conversion matrix for 3ds Max.

[t(0.5,0.5)] [S] [R] [t(-0.5,-0.5)] [T]

[S] = |scaleS 0 0 0|
| 0 scaleT 0 0|
| 0 0 1 0|
| 0 0 0 1|
[R] = |rotateCos -rotateSin 0 0|
|rotateSin rotateCos 0 0|
| 0 0 1 0|
| 0 0 0 1|
[T] = t(-translateS, -translateT)


CONFIDENTIAL