matrix3x3to4x4

Converts 3x3 matrix to 4x4 matrix. 4x4 matrix defaults to identity

Matrix!(T, 4)
matrix3x3to4x4
(
T
)
(
Matrix!(T, 3) m
)

Examples

Matrix3f m1 = matrixf(
    1, 0, 0,
    0, 1, 0,
    0, 0, 1
);
Matrix4f m2 = matrix3x3to4x4(m1);
assert(m2 == matrixf(
    1, 0, 0, 0,
    0, 1, 0, 0,
    0, 0, 1, 0,
    0, 0, 0, 1)
);

Meta