Sdílet prostřednictvím


Vector3.Transform Method (Vector3[], Int32, Quaternion, Vector3 , Int32, Int32)

Applies a specified Quaternion rotation to a specified range of an array of Vector3s and writes the results into a specified range of a destination array.

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

Syntax

public static void Transform (
         Vector3[] sourceArray,
         int sourceIndex,
         ref Quaternion rotation,
         Vector3[] destinationArray,
         int destinationIndex,
         int length
)

Parameters

  • sourceArray
    The source array.
  • sourceIndex
    The index in the source array at which to start.
  • rotation
    The Quaternion rotation to apply.
  • destinationArray
    The existing destination array.
  • destinationIndex
    The index in the destination array at which to start.
  • length
    The number of Vector3s to transform.

See Also

Reference

Vector3 Structure
Vector3 Members
Microsoft.Xna.Framework Namespace

Platforms

Xbox 360, Windows XP SP2, Windows Vista