Creates translation matrix for the specified movement amount.

Namespace:  AForge.Math
Assembly:  AForge.Math (in AForge.Math.dll) Version: 2.2.5.0 (2.2.5.0)

Syntax

C#
public static Matrix4x4 CreateTranslation(
	Vector3 position
)

Parameters

position
Type: AForge.Math..::.Vector3
Vector which set direction and amount of movement.

Return Value

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