|
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
)
Public Shared Function CreateTranslation (
position As Vector3
) As Matrix4x4
Request Example
View SourceParameters
- position
- Type: Accord.MathVector3
Vector which set direction and amount of movement.
Return Value
Type:
Matrix4x4Returns 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