Vector2.Transform Method (Vector2, Matrix)
Transforms the vector (x, y, 0, 1) by the specified matrix.
Syntax
'Declaration
Public Shared Function Transform ( _
position As Vector2, _
matrix As Matrix _
) As Vector2
public static Vector2 Transform (
Vector2 position,
Matrix matrix
)
public:
static Vector2 Transform(
Vector2 position,
Matrix matrix
)
Parameters
Return Value
Type: Vector2
The transformed vector.
Requirements
Namespace: Microsoft.Xna.Framework
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)
See Also
Reference
Vector2 Structure
Vector2 Members
Microsoft.Xna.Framework Namespace
Platforms
Windows Phone