Sdílet prostřednictvím


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 (in microsoft.xna.framework.dll)

Syntax

public static void TransformNormal (
         Vector2[] sourceArray,
         int sourceIndex,
         ref Matrix matrix,
         Vector2[] destinationArray,
         int destinationIndex,
         int length
)

Parameters

  • sourceArray
    The source array.
  • sourceIndex
    The index of the first Vector2 to transform in the source array.
  • matrix
    The Matrix to apply.
  • destinationArray
    The destination array into which the resulting Vector2s are written.
  • destinationIndex
    The index of the position in the destination array where the first result Vector2 should be written.
  • length
    The number of vector normals to be transformed.

See Also

Reference

Vector2 Structure
Vector2 Members
Microsoft.Xna.Framework Namespace

Platforms

Xbox 360, Windows XP SP2, Windows Vista