Export (0) Print
Expand All

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

Transforms a specified range in an array of 3D vector normals by a specified Matrix and writes the results to 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(
	Vector3[] sourceArray,
	int sourceIndex,
	ref Matrix matrix,
	Vector3[] destinationArray,
	int destinationIndex,
	int length
)

Parameters

sourceArray
Type: Microsoft.Xna.Framework.Vector3[]
The source array of Vector3 normals.
sourceIndex
Type: System.Int32
The starting index in the source array.
matrix
Type: Microsoft.Xna.Framework.Matrix%
The transform Matrix to apply.
destinationArray
Type: Microsoft.Xna.Framework.Vector3[]
The destination Vector3 array.
destinationIndex
Type: System.Int32
The starting index in the destination array.
length
Type: System.Int32
The number of vectors to transform.

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:
© 2014 Microsoft