Matrix.CreateTranslation Method (Microsoft.Xna.Framework)

Creates a new translation Matrix.

Namespace: Microsoft.Xna.Framework
Assembly: MonoGame.Framework (MonoGame.Framework.dll 3.8.0.338)
  • C#
  • VB
  • F#
public static Matrix CreateTranslation(
	Vector3 position
)

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.

Parameters

position
Type: Microsoft.Xna.Framework.Vector3
X,Y and Z coordinates of translation.

Return Value

Type: Microsoft.Xna.Framework.Matrix
The translation Matrix.
Supported in:

    
 Windows DirectX Desktop
    
 Linux Desktop
    
 Windows OpenGL Desktop
    
 Web