14 lines
259 B
C++
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
|