summaryrefslogtreecommitdiff
path: root/archive/src/maths/geometry.h
diff options
context:
space:
mode:
authoromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-10-05 12:48:05 +1000
committeromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-10-05 12:48:05 +1000
commitdfb6adbcbcc7d50b770b6d5ea82efdd8f8c32e25 (patch)
treea470b91a90716d7ea46fde53ed395449c24583a2 /archive/src/maths/geometry.h
parent54354e32c6498cc7f8839ab4deb1208d37216cc5 (diff)
delete documentation workflow
Diffstat (limited to 'archive/src/maths/geometry.h')
-rw-r--r--archive/src/maths/geometry.h50
1 files changed, 50 insertions, 0 deletions
diff --git a/archive/src/maths/geometry.h b/archive/src/maths/geometry.h
new file mode 100644
index 0000000..532651c
--- /dev/null
+++ b/archive/src/maths/geometry.h
@@ -0,0 +1,50 @@
+/**
+ * @file geometry.h
+ * @author your name (you@domain.com)
+ * @brief Shapes and intersections between them
+ * @version 0.1
+ * @date 2024-02-24
+ *
+ * @copyright Copyright (c) 2024
+ */
+#pragma once
+
+#include "maths.h"
+
+// typedef struct line_3d {
+// vec3 start, end;
+// } line_3d;
+
+// typedef struct plane {
+// vec3 normal;
+// } plane;
+
+typedef struct Cuboid {
+ Vec3 half_extents;
+} Cuboid;
+
+typedef struct Sphere {
+ f32 radius;
+} Sphere;
+
+// typedef struct cylinder {
+// f32 radius;
+// f32 half_height;
+// } cylinder;
+
+// typedef struct cone {
+// f32 radius;
+// f32 half_height;
+// } cone;
+
+// TODO:
+// capsule
+// torus
+// ray
+// frustum
+// conical frustum
+// wedge
+
+// 2d...
+// line
+// circle