Whether a point is within the selection.
bool contains(double px, double py) => x.contains(px) && y.contains(py);