Share via


Vector3.TransformNormal(Matrix) Method (Microsoft.DirectX)

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

Definition

Visual Basic Public Sub TransformNormal( _
    ByVal sourceMatrix As Matrix _
)
C# public void TransformNormal(
    Matrix sourceMatrix
);
C++ public:
void TransformNormal(
    Matrix sourceMatrix
);
JScript public function TransformNormal(
    sourceMatrix : Matrix
);

Parameters

sourceMatrix Microsoft.DirectX.Matrix
Source Matrix structure.

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