Matrix.CreateTranslation Method (Microsoft.Xna.Framework)

Creates a new translation Matrix.

Namespace: Microsoft.Xna.Framework
Assembly: MonoGame.Framework (MonoGame.Framework.dll 3.8.0.271)
  • C#
  • VB
  • F#
public static Matrix CreateTranslation(
	float xPosition, 
	float yPosition, 
	float zPosition
)

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.

Parameters

xPosition
Type: System.Single
X coordinate of translation.
yPosition
Type: System.Single
Y coordinate of translation.
zPosition
Type: System.Single
Z coordinate of translation.

Return Value

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

    
 Windows DirectX Desktop
    
 Linux Desktop
    
 Windows OpenGL Desktop
    
 Web