You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
JoeStrout edited this page Apr 29, 2026
·
2 revisions
Check if point is inside rectangle
Parameters
Parameter
Default Value
Note
point
rec
Return value
Condition
Return Value
(always)
number
Notes
Example
box= {x:100, y:100, width:200, height:150}
mousePos=raylib.GetMousePositionifraylib.CheckCollisionPointRec(mousePos, box) thenprint"Mouse is over the box!"