Vector2.TransformNormal Method (Vector2[], Int32, Matrix%, Vector2[], Int32, Int32)

Transforms a specified range in an array of Vector2 vector normals by a specified Matrix 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)

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

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.
matrix
Type: Microsoft.Xna.Framework.Matrix%
The transformation matrix to apply.
destinationArray
Type: Microsoft.Xna.Framework.Vector2[]
The destination array into which the resulting Vector2 instances are 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 vector normals 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 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: