Matrix.set_rotation

Copies rot into the upper left corner, the translation (nxn matrices, n >= 3).

struct Matrix(type, int rows_, int cols_)
@safe pure nothrow
static if((rows == cols) && (rows >= 3))
void
set_rotation
(
Matrix!(mt, 3, 3) rot
)
if (
(rows_ > 0) &&
(cols_ > 0)
)

Meta