Sdílet prostřednictvím


Vector2.Transform Method (Vector2[], Matrix, Vector2 )

Transforms an array of Vector2s by a specified Matrix.

Syntax

'Declaration
Public Shared Sub Transform ( _
         sourceArray As Vector2(), _
         ref matrix As Matrix, _
         destinationArray As Vector2() _
)
public static void Transform (
         Vector2[] sourceArray,
         ref Matrix matrix,
         Vector2[] destinationArray
)
public:
static void Transform(
         Vector2 sourceArray[],
         ref Matrix matrix,
         Vector2 destinationArray[]
)

Parameters

  • sourceArray
    Type: Vector2
    The array of Vector2s to transform.
  • matrix
    Type: Matrix
    The transform Matrix to apply.
  • destinationArray
    Type: Vector2
    An existing array into which the transformed Vector2s are written.

Exceptions

Exception type Condition
ArgumentException destinationArray is too small to contain the result.

Requirements

Namespace: Microsoft.Xna.Framework

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

See Also

Reference

Vector2 Structure
Vector2 Members
Microsoft.Xna.Framework Namespace

Platforms

Windows Phone