nw::math::MTX44TextureMatrixForMaya Function

Syntax

NW_MATH_INLINE MTX44 * MTX44TextureMatrixForMaya(
     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 Maya.

A conversion matrix of the type given below is created.

[S] [T] [t(0.5,0.5)] [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