Share via


Matrix.CreateTranslation Method (Single, Single, Single)

Creates a translation Matrix.

Syntax

'Declaration
Public Shared Function CreateTranslation ( _
         xPosition As Single, _
         yPosition As Single, _
         zPosition As Single _
) As Matrix 
public static Matrix CreateTranslation (
         float xPosition,
         float yPosition,
         float zPosition
)
public:
static Matrix CreateTranslation(
         float xPosition,
         float yPosition,
         float zPosition
)

Parameters

  • xPosition
    Type: Single
    Value to translate by on the x-axis.
  • yPosition
    Type: Single
    Value to translate by on the y-axis.
  • zPosition
    Type: Single
    Value to translate by on the z-axis.

Return Value

Type: Matrix
The created translation Matrix.

Requirements

Namespace: Microsoft.Xna.Framework

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

See Also

Reference

Matrix Structure
Matrix Members
Microsoft.Xna.Framework Namespace

Platforms

Windows Phone