containsPoint method

bool containsPoint(
  1. double x,
  2. double y
)

Whether the point (x, y) is inside this box, edges included.

Implementation

bool containsPoint(double x, double y) =>
    x >= left && x <= right && y >= bottom && y <= top;