123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- #ifndef MATH_DEFS_H
- #define MATH_DEFS_H
- #define CMP_EPSILON 0.00001
- #define CMP_EPSILON2 (CMP_EPSILON * CMP_EPSILON)
- #define CMP_NORMALIZE_TOLERANCE 0.000001
- #define CMP_POINT_IN_PLANE_EPSILON 0.00001
- #ifdef DEBUG_ENABLED
- #define MATH_CHECKS
- #endif
- #define USEC_TO_SEC(m_usec) ((m_usec) / 1000000.0)
- enum ClockDirection {
- CLOCKWISE,
- COUNTERCLOCKWISE
- };
- #ifdef REAL_T_IS_DOUBLE
- typedef double real_t;
- #else
- typedef float real_t;
- #endif
- #endif
|