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
The source Vector2.
matrix
The transformation Matrix.
result
[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 XP SP2, Windows Vista, Zune

Community Additions

ADD
Show: