Click or drag to resize
Accord.NET (logo)

Matrix4x4CreateTranslation Method

Creates translation matrix for the specified movement amount.

Namespace:  Accord.Math
Assembly:  Accord.Math (in Accord.Math.dll) Version: 3.8.0
public static Matrix4x4 CreateTranslation(
	Vector3 position
Request Example View Source


Type: Accord.MathVector3
Vector which set direction and amount of movement.

Return Value

Type: Matrix4x4
Returns translation matrix.

The specified vector is copied to the 3rd column of the result matrix. All diagonal elements are set to 1. The rest of matrix is initialized with zeros.

See Also