static int x2(Rectangle r) { ret r.x+r.width; }