Matrix.CreateTranslation Method (Single, Single, Single, Matrix)
Creates a translation Matrix.
Syntax
'Declaration
Public Shared Sub CreateTranslation ( _
xPosition As Single, _
yPosition As Single, _
zPosition As Single, _
out result As Matrix _
)
public static void CreateTranslation (
float xPosition,
float yPosition,
float zPosition,
out Matrix result
)
public:
static void CreateTranslation(
float xPosition,
float yPosition,
float zPosition,
out Matrix result
)
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. - result
Type: Matrix
[OutAttribute] 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