static Rect rectAround(Pt p, int w, int h default w) { ret new Rect(p.x-w/2, p.y-h/2, w, h); } static Rect rectAround(int x, int y, int w, int h) { ret new Rect(x-w/2, y-h/2, w, h); }