Vector3.TransformCoordinate(Vector3,Matrix) Method (Microsoft.DirectX)

Transforms a 3-D vector or an array of 3-D vectors by a given matrix, projecting the result back into w = 1.

Definition

Visual Basic Public Shared Function TransformCoordinate( _
    ByVal source As Vector3, _
    ByVal sourceMatrix As Matrix _
) As Vector3
C# public static Vector3 TransformCoordinate(
    Vector3 source,
    Matrix sourceMatrix
);
C++ public:
static Vector3 TransformCoordinate(
    Vector3 source,
    Matrix sourceMatrix
);
JScript public static function TransformCoordinate(
    source : Vector3,
    sourceMatrix : Matrix
) : Vector3;

Parameters

source Microsoft.DirectX.Vector3
Source Vector3 structure.
sourceMatrix Microsoft.DirectX.Matrix
Source Matrix structure.

Return Value

Microsoft.DirectX.Vector3
A Vector3 structure that represents the results of the method.

Remarks

This method transforms the source vector, source (x, y, z, 1), or all vectors in the vector parameter, by the matrix sourceMatrix, projecting the result back into w = 1.

**Note: **Overloads of this method that accept a Matrix structure as a parameter are static.

See Also