Microsoft DirectX 9.0 SDK Update (October 2004)

Vector3.TransformNormal Method

Language:

Note: This documentation is preliminary and is subject to change.

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

Definition

Visual Basic .NET Public Shared Function TransformNormal( _
    ByVal source As Vector3, _
    ByVal sourceMatrix As Matrix _
) As Vector3
C# public static Vector3 TransformNormal(
    Vector3 source,
    Matrix sourceMatrix
);
Managed C++ public: static Vector3 TransformNormal(
    Vector3 source,
    Matrix sourceMatrix
);
JScript .NET public static function TransformNormal(
    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 contains 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


© 2004 Microsoft Corporation. All rights reserved. Terms of use.

Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center