--- id: collision-point_rect name: Collision.point_rect category: collision kind: namespace-method tokens: Collision.point_rect sig: Collision.point_rect(px, py, rx, ry, rw, rh) -> bool tip: Is a point inside a rectangle? order: 1 ns: Collision member: point_rect --- Returns true when the point (px, py) lies within the rectangle (rx, ry, rw, rh) — inclusive on the top-left edge, exclusive on the bottom-right. Use it for mouse or touch hit-testing against a button or a world region. ```ludic program Demo { handler Step phase Update { if Collision.point_rect(mx, my, bx, by, bw, bh) { press() } } } ```