pub fn point_in_rect((x, y): Point, rect: Rect) -> bool
pointInRect: whether the point is inside the rectangle or on its edge.
pointInRect