Export (0) Print
Expand All

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

Transforms an array of Vector2 instances by a specified Quaternion.

Namespace:  Microsoft.Xna.Framework
Assembly:  Microsoft.Xna.Framework.Math (in Microsoft.Xna.Framework.Math.dll)

public static void Transform(
	Vector2[] sourceArray,
	ref Quaternion rotation,
	Vector2[] destinationArray
)

Parameters

sourceArray
Type: Microsoft.Xna.Framework.Vector2[]
The array of Vector2 instances to transform.
rotation
Type: Microsoft.Xna.Framework.Quaternion%
The Quaternion rotation to apply.
destinationArray
Type: Microsoft.Xna.Framework.Vector2[]
An existing array into which the transformed Vector2 instances are written.

ExceptionCondition
ArgumentException

destinationArray is too small to contain the result.

ArgumentNullException

sourceArray or destinationArray is null.

Silverlight

Supported in: 5

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show:
© 2014 Microsoft