static bool rectangleContains(Rectangle r, Point p) { ret r != null && p != null && r.contains(p); }