An axis-aligned rectangle: x, y is the top left corner.
x
y
r := Rect.{ x = 10, y = 20, w = 100, h = 50 }; assert(contains(r, 10, 20)); assert(!contains(r, 110, 20));