D3DXMatrixScaling
Microsoft DirectX 9.0 SDK Update (October 2004)

D3DXMatrixScaling Function


Builds a matrix that scales along the x-axis, the y-axis, and the z-axis.

Syntax

D3DXMATRIX *WINAPI D3DXMatrixScaling(      

    D3DXMATRIX *pOut,     FLOAT sx,     FLOAT sy,     FLOAT sz );

Parameters

pOut
[in, out] Pointer to the D3DXMATRIX structure that is the result of the operation.
sx
[in] Scaling factor that is applied along the x-axis.
sy
[in] Scaling factor that is applied along the y-axis.
sz
[in] Scaling factor that is applied along the z-axis.

Return Value

Pointer to the scaling transformation D3DXMATRIX.



Remarks

The return value for this function is the same value returned in the pOut parameter. In this way, the D3DXMatrixScaling function can be used as a parameter for another function.

Function Information

Headerd3dx9math.h
Import libraryd3dx9.lib
Minimum operating systems Windows 98


© 2004 Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center.