Vector2.Transform Method (Vector2, Matrix, Vector2)
Transforms a Vector2 by the given Matrix.
Syntax
'Declaration
Public Shared Sub Transform ( _
ref position As Vector2, _
ref matrix As Matrix, _
out result As Vector2 _
)
public static void Transform (
ref Vector2 position,
ref Matrix matrix,
out Vector2 result
)
public:
static void Transform(
ref Vector2 position,
ref Matrix matrix,
out Vector2 result
)
Parameters
- position
Type: Vector2
The source Vector2. - matrix
Type: Matrix
The transformation Matrix. - result
Type: Vector2
[OutAttribute] The Vector2 resulting from the transformation.
Exceptions
Exception type | Condition |
---|---|
ArgumentException | The target array size must be equal or larger than the source array size. |
ArgumentNullException | sourceArray or destinationArray is null. |
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