Quaternion.fromMatrix

Creates a quaternion from a 3x3 matrix.

struct Quaternion(type)
@safe pure nothrow static
fromMatrix
(
Matrix!(qt, 3, 3) matrix
)

Parameters

matrix Matrix!(qt, 3, 3)

3x3 matrix (rotation)

Return Value

A quaternion representing the rotation (3x3 matrix)

Meta