From c7c4f8f82c66cfe89b72d176ee51dab8bd30dc95 Mon Sep 17 00:00:00 2001 From: ladevieq Date: Sun, 20 Dec 2020 21:59:33 +0100 Subject: Add hittable interface and hit infos on hit --- include/rt.hpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 include/rt.hpp (limited to 'include/rt.hpp') diff --git a/include/rt.hpp b/include/rt.hpp new file mode 100644 index 0000000..60170ac --- /dev/null +++ b/include/rt.hpp @@ -0,0 +1,18 @@ +#ifndef __RT_HPP_ +#define __RT_HPP_ + +#include + +const double pi = 3.1415926535897932385; +const double infinity = std::numeric_limits::infinity(); + +inline double deg_to_rad(double deg) { + return deg * pi / 180.0; +} + +#include "vec3.hpp" +#include "ray.hpp" +#include "color.hpp" +#include "sphere.hpp" + +#endif // !__RT_HPP_ -- cgit v1.3