Share via


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

Transforms an array of Vector2 vector normals by a specified Matrix.

Syntax

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

Parameters

  • sourceArray
    Type: Vector2
    The array of vector normals to transform.
  • matrix
    Type: Matrix
    The transform Matrix to apply.
  • destinationArray
    Type: Vector2
    An existing array into which the transformed vector normals 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

Vector2 Structure
Vector2 Members
Microsoft.Xna.Framework Namespace

Platforms

Windows Phone