Vector2.Transform Method (Vector2(), Int32, Quaternion%, Vector2(), Int32, Int32)

Transforms a specified range in an array of Vector2 instances by a specified Quaternion and places the results in a specified range in a destination array.

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

'Declaration
Public Shared Sub Transform ( _
	sourceArray As Vector2(), _
	sourceIndex As Integer, _
	ByRef rotation As Quaternion, _
	destinationArray As Vector2(), _
	destinationIndex As Integer, _
	length As Integer _
)

Parameters

sourceArray
Type: Microsoft.Xna.Framework.Vector2()
The source array.
sourceIndex
Type: System.Int32
The index of the first Vector2 to transform in the source array.
rotation
Type: Microsoft.Xna.Framework.Quaternion%
The Quaternion rotation to apply.
destinationArray
Type: Microsoft.Xna.Framework.Vector2()
The destination array into which the resulting Vector2 instances will be written.
destinationIndex
Type: System.Int32
The index of the position in the destination array where the first result Vector2 should be written.
length
Type: System.Int32
The number of Vector2 instances to be transformed.

ExceptionCondition
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 Nothing.

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: