static void scaleByValues(Mat2D o, double x, double y) { o[0] *= x; o[1] *= x; o[2] *= y; o[3] *= y; }