contains method

bool contains(
  1. Vec2 p
)

Implementation

bool contains(Vec2 p) =>
    p.x >= left && p.x <= right && p.y >= top && p.y <= bottom;