squishMath.h 766 B

12345678910111213141516171819202122232425262728
  1. #ifndef _SQUISH_MATH_H_
  2. #define _SQUISH_MATH_H_
  3. #define FLT_MAX 3.402823466e+38F
  4. #define FLT_EPSILON 1.192092896e-07F
  5. #define INT_MAX 2147483647 /* maximum (signed) int value */
  6. // Abstract the math in squish so it doesn't use std:: directly
  7. namespace SquishMath
  8. {
  9. float fabs( const float f );
  10. float pow( const float x, const float y );
  11. float cos( const float theta );
  12. float sin( const float theta );
  13. float sqrt( const float a );
  14. float atan2( const float a, const float b );
  15. float min( const float a, const float b );
  16. float max( const float a, const float b );
  17. float floor( const float a );
  18. float ceil( const float a );
  19. int min( const int a, const int b );
  20. int max( const int a, const int b );
  21. };
  22. #endif