diff options
author | pommicket <pommicket@gmail.com> | 2023-01-02 13:36:38 -0500 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2023-01-02 13:36:38 -0500 |
commit | c0d0117a963cf8e4dfb28b919087d8a8ecbbca6e (patch) | |
tree | 0c412921f82f141cf733e8de4b4b02152446dba5 /util.h | |
parent | 1dc24e79ec7cf80e06b9c4e7cc55e18857b624c1 (diff) |
fix up restructuring
Diffstat (limited to 'util.h')
-rw-r--r-- | util.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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); |