Vector2.TransformCoordinate Method |
Language: |
Transforms a 2-D vector or an array of 2-D vectors by a given matrix, projecting the result back into w = 1.
Visual Basic Public Shared Function TransformCoordinate( _
ByVal source As Vector2, _
ByVal sourceMatrix As Matrix _
) As Vector2C# public static Vector2 TransformCoordinate(
Vector2 source,
Matrix sourceMatrix
);C++ public:
static Vector2 TransformCoordinate(
Vector2 source,
Matrix sourceMatrix
);JScript public static function TransformCoordinate(
source : Vector2,
sourceMatrix : Matrix
) : Vector2;
source Microsoft.DirectX.Vector2
Source Vector2 structure.sourceMatrix Microsoft.DirectX.Matrix
Source Matrix structure.
Microsoft.DirectX.Vector2
A Vector2 structure that represents the results of the method.
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.
Send comments about this topic to Microsoft. © Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center