summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/ray.hpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/ray.hpp b/lib/ray.hpp
new file mode 100644
index 0000000..4c0710a
--- /dev/null
+++ b/lib/ray.hpp
@@ -0,0 +1,11 @@
+#pragma once
+
+#include <glm/glm.hpp>
+
+class Ray {
+public:
+ Ray(glm::vec3 start, glm::vec3 direction) : start {start}, direction {direction} { }
+
+ glm::vec3 start;
+ glm::vec3 direction;
+};