Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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)
'Declaration
Public Shared Sub TransformNormal ( _
	sourceArray As Vector2(), _
	sourceIndex As Integer, _
	ByRef matrix As Matrix, _
	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.
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 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.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.