toytracer/util.h

14 lines
259 B
C
Raw Normal View History

2020-06-03 22:15:32 +00:00
#ifndef UTIL_H
#define UTIL_H
#include <limits>
const double infinity = std::numeric_limits<double>::infinity();
const double pi = 3.1415926535897932385;
inline double degrees_to_radians(double degrees) {
return degrees * pi / 180;
}
#endif // UTIL_H