Vector2.Transform Method (Vector2[], Matrix, Vector2[])

Transforms an array of Vector2s by a specified Matrix.

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

public static void Transform (
         Vector2[] sourceArray,
         ref Matrix matrix,
         Vector2[] destinationArray
)

Parameters

sourceArray
The array of Vector2s to transform.
matrix
The transform Matrix to apply.
destinationArray
An existing array into which the transformed Vector2s are written.

Exception typeCondition
ArgumentException destinationArray is too small to contain the result.

Xbox 360, Windows XP SP2, Windows Vista

Community Additions

ADD
Show: