Share via


UnsafeNativeMethods.Matrix.MultiplyTranspose(Matrix,Matrix,Matrix) Method (Microsoft.DirectX)

Calculates the transposed product of two matrices.

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 MultiplyTranspose( _
    ByVal pOut As Matrix, _
    ByVal left As Matrix, _
    ByVal right As Matrix _
) As Matrix
C# public static Matrix MultiplyTranspose(
    Matrix pOut,
    Matrix left,
    Matrix right
);
C++ public:
static Matrix MultiplyTranspose(
    Matrix pOut,
    Matrix left,
    Matrix right
);
JScript public static function MultiplyTranspose(
    pOut : Matrix,
    left : Matrix,
    right : Matrix
) : Matrix;

Parameters

pOut Microsoft.DirectX.Matrix
A Matrix structure that is the product and transposition of two matrices.
left Microsoft.DirectX.Matrix
Source Matrix structure.
right Microsoft.DirectX.Matrix
Source Matrix structure.

Return Value

Microsoft.DirectX.Matrix

Remarks

This method's result is the transposed product of two transformation matrices:

Out = T(left * right).

Out = T(this instance * source).

This method is useful for setting matrices as constants for vertex and pixel shaders.

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

See Also