static DoubleRect doubleRectFromPoints(double x1, double y1, double x2, double y2) { ret new DoubleRect(x1, y1, x2-x1, y2-y1); }