diff options
| author | ladevieq <ladevie.quentin@gmail.com> | 2020-12-20 21:59:33 +0100 |
|---|---|---|
| committer | ladevieq <ladevie.quentin@gmail.com> | 2020-12-20 21:59:33 +0100 |
| commit | c7c4f8f82c66cfe89b72d176ee51dab8bd30dc95 (patch) | |
| tree | d0c2caeccda953d86806cb7c7b27c8941e0ef845 /include/rt.hpp | |
| parent | fc601fd503ec1ebd08e4daffeb9aa0812aff2b71 (diff) | |
Add hittable interface and hit infos on hit
Diffstat (limited to 'include/rt.hpp')
| -rw-r--r-- | include/rt.hpp | 18 |
1 files changed, 18 insertions, 0 deletions
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 <limits> + +const double pi = 3.1415926535897932385; +const double infinity = std::numeric_limits<double>::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_ |
