Microsoft DirectX 9.0 SDK Update (October 2004)

Vector3.Transform Method

Language:

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

Transforms a 3-D vector or an array of 3-D vectors by a given matrix.

Definition

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

Parameters

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

Return Value

Microsoft.DirectX.Vector4 . A Vector4 structure that is the result of the method.

Remarks

This method transforms the vector source (x, y, 0, 1) by the matrix sourceMatrix.

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