summaryrefslogtreecommitdiff
path: root/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'util.h')
-rw-r--r--util.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/util.h b/util.h
index a71a961..99d8128 100644
--- a/util.h
+++ b/util.h
@@ -406,6 +406,12 @@ Rect rect_endpoints(v2 e1, v2 e2);
Rect rect4(float x1, float y1, float x2, float y2);
Rect rect_xywh(float x, float y, float w, float h);
Rect rect_centered(v2 center, v2 size);
+float rect_x1(Rect r);
+float rect_y1(Rect r);
+float rect_x2(Rect r);
+float rect_y2(Rect r);
+float rect_xmid(Rect r);
+float rect_ymid(Rect r);
v2 rect_center(Rect r);
bool rect_contains_point(Rect r, v2 point);
Rect rect_translate(Rect r, v2 by);