Creates 4x4 tranformation matrix from 3x3 rotation matrix.

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

Syntax

C#
public static Matrix4x4 CreateFromRotation(
	Matrix3x3 rotationMatrix
)

Parameters

rotationMatrix
Type: AForge.Math..::.Matrix3x3
Source 3x3 rotation matrix.

Return Value

Returns 4x4 rotation matrix.

Remarks

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