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.

Syntax

'Declaration
Public Shared Sub TransformNormal ( _
         sourceArray As Vector3(), _
         sourceIndex As Integer, _
         ref matrix As Matrix, _
         destinationArray As Vector3(), _
         destinationIndex As Integer, _
         length As Integer _
)
public static void TransformNormal (
         Vector3[] sourceArray,
         int sourceIndex,
         ref Matrix matrix,
         Vector3[] destinationArray,
         int destinationIndex,
         int length
)
public:
static void TransformNormal(
         Vector3 sourceArray[],
         int sourceIndex,
         ref Matrix matrix,
         Vector3 destinationArray[],
         int destinationIndex,
         int length
)

Parameters

  • sourceArray
    Type: Vector3
    The source array of Vector3 normals.
  • sourceIndex
    Type: Int32
    The starting index in the source array.
  • matrix
    Type: Matrix
    The transform Matrix to apply.
  • destinationArray
    Type: Vector3
    The destination Vector3 array.
  • destinationIndex
    Type: Int32
    The starting index in the destination array.
  • length
    Type: Int32
    The number of vectors to transform.

Exceptions

Exception type Condition
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.

Requirements

Namespace: Microsoft.Xna.Framework

Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)

See Also

Reference

Vector3 Structure
Vector3 Members
Microsoft.Xna.Framework Namespace

Platforms

Windows Phone