includePoint method

Rect includePoint(
  1. Point p
)

Include a point in the rectangle (expand to contain it).

Implementation

Rect includePoint(Point p) => Rect(
      math.min(x0, p.x),
      math.min(y0, p.y),
      math.max(x1, p.x),
      math.max(y1, p.y),
    );