public static mat3 translate(mat3 m, vec2 v) { mat3 result = m; result.col2 = m.col0 * v.x + m.col1 * v.y + m.col2; return result; }