Matrix.CreateTranslation Method (Vector3)
Creates a translation Matrix.
Syntax
'Declaration
Public Shared Function CreateTranslation ( _
position As Vector3 _
) As Matrix
public static Matrix CreateTranslation (
Vector3 position
)
public:
static Matrix CreateTranslation(
Vector3 position
)
Parameters
- position
Type: Vector3
Amounts to translate by on the x, y, and z axes.
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