Vector3.Transform Method (array<Vector3[], Int32, Matrix%, array<Vector3[], Int32, Int32)

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Applies a specified transform Matrix 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.Math (in Microsoft.Xna.Framework.Math.dll)

Syntax

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

Parameters

  • sourceIndex
    Type: System.Int32
    The index in the source array at which to start.
  • destinationIndex
    Type: System.Int32
    The index in the destination array at which to start.

Exceptions

Exception 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 nulla null reference (Nothing in Visual Basic).

Version Information

Silverlight

Supported in: 5

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.