Share via


Vector3.Transform Method (Vector3, Matrix)

Transforms a 3D vector by the given matrix.

Syntax

'Declaration
Public Shared Function Transform ( _
         position As Vector3, _
         matrix As Matrix _
) As Vector3 
public static Vector3 Transform (
         Vector3 position,
         Matrix matrix
)
public:
static Vector3 Transform(
         Vector3 position,
         Matrix matrix
)

Parameters

  • position
    Type: Vector3
    The source vector.
  • matrix
    Type: Matrix
    The transformation matrix.

Return Value

Type: Vector3
The transformed vector.

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