![]() |
![]() |
![]() |
Vector2.Transform Method |
Language: |
Transforms a 2-D vector or an array of 2-D vectors by a given matrix.
Visual Basic .NET Public Shared Function Transform( _
ByVal source As Vector2, _
ByVal sourceMatrix As Matrix _
) As Vector4C# public static Vector4 Transform(
Vector2 source,
Matrix sourceMatrix
);Managed C++ public: static Vector4 Transform(
Vector2 source,
Matrix sourceMatrix
);JScript .NET public static function Transform(
source : Vector2,
sourceMatrix : Matrix
) : Vector4;
source Microsoft.DirectX.Vector2. Source Vector2 structure. sourceMatrix Microsoft.DirectX.Matrix. Source Matrix structure.
Microsoft.DirectX.Vector4 . A Vector4 structure that is the result of the method.
This method transforms the vector source (x, y, 0, 1) by the matrix sourceMatrix.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center