diff options
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_ |
