From 893176a0b18a2281abe09def716ccc3db5583c3f Mon Sep 17 00:00:00 2001 From: Julian T Date: Sun, 26 Jul 2020 12:56:27 +0200 Subject: Implemented object intersection and startet work on render gui --- src/ray.hpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/ray.hpp (limited to 'src/ray.hpp') diff --git a/src/ray.hpp b/src/ray.hpp new file mode 100644 index 0000000..6341d44 --- /dev/null +++ b/src/ray.hpp @@ -0,0 +1,15 @@ +#ifndef RAY_H +#define RAY_H + +#include "vector.hpp" + +class Ray { + public: + Ray(Vec3d start, Vec3d direction, bool normalize); + Ray(Vec3d a, Vec3d b); + + Vec3d m_start; + Vec3d m_direction; +}; + +#endif -- cgit v1.2.3