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