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
Syntax
public static Matrix4x4 CreateTranslation(
	Vector3 position
)
Request Example View Source

Parameters

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

Return Value

Type: Matrix4x4
Returns translation matrix.
Remarks

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