toytracer/util.h
2020-06-04 00:15:32 +02:00

14 lines
259 B
C++

#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