From 7c8b8a39fd36e190578587d8d92f28f460a1fc4b Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 2 Jan 2022 21:07:37 +0000 Subject: Encapsulate Ray --- lib/ray.hpp | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 lib/ray.hpp (limited to 'lib') 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 + +class Ray { +public: + Ray(glm::vec3 start, glm::vec3 direction) : start {start}, direction {direction} { } + + glm::vec3 start; + glm::vec3 direction; +}; -- cgit v1.2.3