Function translation

Translation vector of the matrix

Vector!(T,3) translation(T) (
  Matrix!(T,4) m
);

Example

Matrix4f tm = matrixf(
    1.0f, 0.0f, 0.0f, 3.0f,
    0.0f, 1.0f, 0.0f, 5.0f,
    0.0f, 0.0f, 1.0f, 2.5f,
    0.0f, 0.0f, 0.0f, 1.0f,
);

Vector3f t = translation(tm);

assert(t == Vector3f(3.0f, 5.0f, 2.5f));