Share via


Vector3.TransformNormal(Vector3[],Matrix) Method (Microsoft.DirectX)

Transforms a 3-D vector normal by the given matrix.

Definition

Visual Basic Public Shared Function TransformNormal( _
    ByVal vector() As Vector3, _
    ByVal sourceMatrix As Matrix _
) As Vector3()
C# public static Vector3[] TransformNormal(
    Vector3[] vector,
    Matrix sourceMatrix
);
C++ public:
static array<Vector3>^ TransformNormal(
    array<Vector3>^ vector,
    Matrix sourceMatrix
);
JScript public static function TransformNormal(
    vector : Vector3[],
    sourceMatrix : Matrix
) : Vector3[];

Parameters

vector Microsoft.DirectX.Vector3[]
Array of source Vector3 structures.
sourceMatrix Microsoft.DirectX.Matrix
Source Matrix structure.

Return Value

Microsoft.DirectX.Vector3[]
Array of Vector3 structures that contain the results of this method.

Remarks

This method transforms the vector normal (x, y, z, 0) of the source vector, or the array of vector structures, by the sourceMatrix matrix.

If you transform a normal by a non-affine matrix, the matrix you pass to this function should be the transpose of the inverse of the matrix you would use to transform a coordinate.

See Also