Export (0) Print
Expand All

Vector2.Transform Method (Vector2, Matrix, Vector2)

Transforms a Vector2 by the given Matrix.

Namespace: Microsoft.Xna.Framework
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)

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.

Exception typeCondition
ArgumentExceptionThe target array size must be equal or larger than the source array size.
ArgumentNullException sourceArray or destinationArray is null.

Xbox 360, Windows 7, Windows Vista, Windows XP, Windows Phone

Community Additions

ADD
Show:
© 2015 Microsoft