Microsoft DirectX 9.0 SDK Update (October 2004)

Vector2.TransformCoordinate Method

Language:

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

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

Definition

Visual Basic .NET Public Shared Function TransformCoordinate( _
    ByVal vector() As Vector2, _
    ByVal sourceMatrix As Matrix _
) As Vector2()
C# public static Vector2[] TransformCoordinate(
    Vector2[] vector,
    Matrix sourceMatrix
);
Managed C++ public: static Vector2 TransformCoordinate(
    Vector2 vector __gc[],
    Matrix sourceMatrix
) __gc[];
JScript .NET public static function TransformCoordinate(
    vector : Vector2[],
    sourceMatrix : Matrix
) : Vector2[];

Parameters

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

Return Value

Microsoft.DirectX.Vector2[]. Array of Vector2 structures that represent the results of the method.

Remarks

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


© 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