Share via


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

Transforms an array of Vector2s by a specified Quaternion.

Syntax

'Declaration
Public Shared Sub Transform ( _
         sourceArray As Vector2(), _
         ref rotation As Quaternion, _
         destinationArray As Vector2() _
)
public static void Transform (
         Vector2[] sourceArray,
         ref Quaternion rotation,
         Vector2[] destinationArray
)
public:
static void Transform(
         Vector2 sourceArray[],
         ref Quaternion rotation,
         Vector2 destinationArray[]
)

Parameters

Exceptions

Exception type Condition
ArgumentException destinationArray is too small to contain the result.
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