次の方法で共有


Vector4.Transform Method (Vector4[], Int32, Matrix, Vector4 , Int32, Int32)

Transforms a specified range in an array of Vector4s by a specified Matrix into a specified range in a destination array.

Syntax

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

Parameters

  • sourceArray
    Type: Vector4
    The array of Vector4s containing the range to transform.
  • sourceIndex
    Type: Int32
    The index in the source array of the first Vector4 to transform.
  • matrix
    Type: Matrix
    The transform Matrix to apply.
  • destinationArray
    Type: Vector4
    The existing destination array of Vector4s into which to write the results.
  • destinationIndex
    Type: Int32
    The index in the destination array of the first result Vector4 to write.
  • length
    Type: Int32
    The number of Vector4s 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

Vector4 Structure
Vector4 Members
Microsoft.Xna.Framework Namespace

Platforms

Windows Phone