Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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

Transforms a specified range in an array of Vector2s by a specified Matrix and places the results in a specified range in a destination array.

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

public static void Transform (
         Vector2[] sourceArray,
         int sourceIndex,
         ref Matrix matrix,
         Vector2[] destinationArray,
         int destinationIndex,
         int length


Type: Vector2
The source array.
Type: Int32
The index of the first Vector2 to transform in the source array.
Type: Matrix
The Matrix to transform by.
Type: Vector2
The destination array into which the resulting Vector2s will be written.
Type: Int32
The index of the position in the destination array where the first result Vector2 should be written.
Type: Int32
The number of Vector2s to be transformed.

Exception typeCondition
ArgumentException destinationArray is too small to contain the result or the combination of sourceIndex and length was greater than sourceArray.Length.
ArgumentNullException sourceArray or destinationArray is null.

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

Community Additions

© 2015 Microsoft