Share via


UnsafeNativeMethods.Matrix.Scaling(Matrix,Vector3) Method (Microsoft.DirectX)

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

Note: For programming in Microsoft Visual Basic .NET or Microsoft JScript .NET, use the equivalent method in the Microsoft.DirectX structures.

Definition

Visual Basic Public Shared Function Scaling( _
    ByVal pOut As Matrix, _
    ByVal v As Vector3 _
) As Matrix
C# public static Matrix Scaling(
    Matrix pOut,
    Vector3 v
);
C++ public:
static Matrix Scaling(
    Matrix pOut,
    Vector3 v
);
JScript public static function Scaling(
    pOut : Matrix,
    v : Vector3
) : Matrix;

Parameters

pOut Microsoft.DirectX.Matrix
Scaled Matrix structure.
v Microsoft.DirectX.Vector3
A Vector3 structure containing three values that represent the scaling factors applied along the x-axis, y-axis, and z-axis.

Return Value

Microsoft.DirectX.Matrix
Scaled Matrix structure.

Remarks

The return value for this method is the same value returned in the pOut parameter. This allows you to use the Scaling method as a parameter for another method.