aboutsummaryrefslogtreecommitdiffstats
path: root/include/ray.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/ray.hpp')
-rw-r--r--include/ray.hpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/ray.hpp b/include/ray.hpp
new file mode 100644
index 0000000..3f8542b
--- /dev/null
+++ b/include/ray.hpp
@@ -0,0 +1,17 @@
+#ifndef __RAY_HPP_
+#define __RAY_HPP_
+
+#include "vec3.hpp"
+
+class ray {
+ public:
+
+ ray(const point3& origin, const vec3& direction);
+
+ point3 at(double t);
+
+ point3 origin;
+ vec3 direction;
+};
+
+#endif // !__RAY_HPP_