public void transform_2x2(ref double x, ref double y) { double tmp = x; x = tmp * sx + y * shx; y = tmp * shy + y * sy; }