Click or drag to resize
Accord.NET (logo)

Matrix4x4CreateFromRotation Method

Creates 4x4 tranformation matrix from 3x3 rotation matrix.

Namespace:  Accord.Math
Assembly:  Accord.Math (in Accord.Math.dll) Version: 3.8.0
public static Matrix4x4 CreateFromRotation(
	Matrix3x3 rotationMatrix
Request Example View Source


Type: Accord.MathMatrix3x3
Source 3x3 rotation matrix.

Return Value

Type: Matrix4x4
Returns 4x4 rotation matrix.

The source 3x3 rotation matrix is copied into the top left corner of the result 4x4 matrix, i.e. it represents 0th, 1st and 2nd row/column. The V33 element is set to 1 and the rest elements of 3rd row and 3rd column are set to zeros.

See Also