summaryrefslogtreecommitdiff
path: root/donut.h
diff options
context:
space:
mode:
Diffstat (limited to 'donut.h')
-rw-r--r--donut.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/donut.h b/donut.h
new file mode 100644
index 0000000..568ae80
--- /dev/null
+++ b/donut.h
@@ -0,0 +1,29 @@
+#ifndef _DONUT
+#define _DONUT
+
+#include <raylib.h>
+#include <stdio.h>
+#include <math.h>
+
+#define SCREEN_WIDTH 640
+#define SCREEN_HEIGHT 640
+
+typedef struct _Point3d{
+ double x, y, z;
+}point3d;
+
+typedef struct _Point2d{
+ double x, y;
+}point2d;
+
+void debug_printp2(point2d p);
+
+point2d map(point2d p);
+point2d demap(point2d p);
+
+void draw_circle(point2d center, double radius);
+point3d rotate_x(point3d p, double a);
+point3d rotate_y(point3d p, double a);
+point3d rotate_z(point3d p, double a);
+
+#endif \ No newline at end of file