contains method

bool contains(
  1. double px,
  2. double py
)

Whether a point is within the selection.

Implementation

bool contains(double px, double py) => x.contains(px) && y.contains(py);