Quaternion.toMatrix

Returns the quaternion as matrix.

struct Quaternion(type)
@safe pure nothrow const
Matrix!(qt, rows, cols)
toMatrix
(
int rows
int cols
)
()
if (
(rows >= 3) &&
(cols >= 3)
)

Parameters

rows

number of rows of the resulting matrix (min 3)

cols

number of columns of the resulting matrix (min 3)

Meta