nw::math::MTX44TextureMatrixForMaya Function
NW_MATH_INLINE MTX44 * MTX44TextureMatrixForMaya(
MTX44* pOut,
float scaleS,
float scaleT,
float rotate,
float translateS,
float translateT
);
| 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. |
Creates a texture coordinate conversion matrix for Maya.
[S] [T] [t(0.5,05)] [R] [t(-0.5,-0.5)]
[S] = |scaleS 0 0 0|
| 0 scaleT 0 0|
| 0 0 1 0|
| 0 0 0 1|
[T] = t(-translateS, -translateT)
[R] = |rotateCos -rotateSin 0 0|
|rotatesin rotateCos 0 0|
| 0 0 1 0|
| 0 0 0 1|
CONFIDENTIAL