#ifndef INTERNAL_DEFS #define INTERNAL_DEFS #ifndef PI #define PI 3.141592653589793238462643 #endif #ifndef EPSILON #define EPSILON 1e-15 #endif #ifndef INFTY_D #define INFTY_D numeric_limits::infinity() #endif #ifndef NAN_D #define NAN_D std::numeric_limits::quiet_NaN() #endif #if defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__TOS_WIN__) #ifndef IS_WINDOWS #define IS_WINDOWS #endif #include #include #elif defined(unix) || defined(__unix) || defined(__unix__) #ifndef IS_UNIX #define IS_UNIX #endif #include #include #include #include #elif defined(__APPLE__) #ifndef IS_APPLE #define IS_APPLE #endif #include #include #endif #define DIRECTORY_SEPARATOR "/" #endif