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

Transforms an array of 3D vector normals by a specified Matrix.

Syntax

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

Parameters

  • sourceArray
    Type: Vector3
    The array of Vector3 normals to transform.
  • matrix
    Type: Matrix
    The transform matrix to apply.
  • destinationArray
    Type: Vector3
    An existing Vector3 array into which the results of the transforms are written.

Exceptions

Exception type Condition
ArgumentException destinationArray is too small to contain the result.
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