diff options
Diffstat (limited to 'src/rotrect.h')
-rw-r--r-- | src/rotrect.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/rotrect.h b/src/rotrect.h index db0f426..f707d9c 100644 --- a/src/rotrect.h +++ b/src/rotrect.h @@ -1,3 +1,7 @@ #pragma once +typedef struct { double x0, y0, x1, y1, x2, y2, x3, y3; } Rect; + +Rect rotrect_create(double width, double height, double angle); +void rotrect_draw(Rect rect, double x, double y); void rotrect(double x, double y, double width, double height, double angle); |