Share via


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

Transforms a source array of Vector3s by a specified Quaternion rotation and writes the results to an existing destination array.

Syntax

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

Parameters

  • sourceArray
    Type: Vector3
    The source array.
  • rotation
    Type: Quaternion
    The Quaternion rotation to apply.
  • destinationArray
    Type: Vector3
    An existing destination array into which the transformed Vector3s 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