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.

Syntax

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

Parameters

  • sourceArray
    Type: Vector3
    The source array.
  • sourceIndex
    Type: Int32
    The index in the source array at which to start.
  • rotation
    Type: Quaternion
    The Quaternion rotation to apply.
  • destinationArray
    Type: Vector3
    The existing destination array.
  • destinationIndex
    Type: Int32
    The index in the destination array at which to start.
  • length
    Type: Int32
    The number of Vector3s 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