static Rect rectFromPoints(int x1, int y1, int x2, int y2) { ret pointsRect(x1, y1, x2, y2); } static Rect rectFromPoints(Pt a, Pt b) { ret pointsRect(a.x, a.y, b.x, b.y); }