Transform Method (Vector2, Matrix)

Vector2.Transform Method (Vector2, Matrix)

Transforms the vector (x, y, 0, 1) by the specified matrix.

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

public static Vector2 Transform (
         Vector2 position,
         Matrix matrix
)

Parameters

position
Type: Vector2
The source vector.
matrix
Type: Matrix
The transformation matrix.

Return Value

The transformed vector.

Xbox 360, Windows 7, Windows Vista, Windows XP, Windows Phone

Community Additions

ADD
Show:
© 2016 Microsoft