mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-02 20:58:15 +00:00
Correct PointInRect
This commit is contained in:
Vendored
+1
-1
@@ -28,7 +28,7 @@ FRect :: struct {
|
|||||||
w, h: f32,
|
w, h: f32,
|
||||||
}
|
}
|
||||||
|
|
||||||
PointInRect :: proc(p, r: ^Rect) -> bool {
|
PointInRect :: proc(p: ^Point, r: ^Rect) -> bool {
|
||||||
return bool((p.x >= r.x) && (p.x < (r.x + r.w)) && (p.y >= r.y) && (p.y < (r.y + r.h)))
|
return bool((p.x >= r.x) && (p.x < (r.x + r.w)) && (p.y >= r.y) && (p.y < (r.y + r.h)))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user