public static Matrix Translate(this Matrix m, double dx, double dy) { return new Matrix(m.M11, m.M12, m.M21, m.M22, m.M31 + dx, m.M32 + dy); }