Blame view

ios/cocos2d/external/recast/Detour/DetourMath.h 569 Bytes
520389e3   xiaoyu   接入cocos源码,编译未通过,继续修改
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
  /**
  @defgroup detour Detour
  
  Members in this module are wrappers around the standard math library
  */
  
  #ifndef DETOURMATH_H
  #define DETOURMATH_H
  
  #include <math.h>
  
  inline float dtMathFabsf(float x) { return fabsf(x); }
  inline float dtMathSqrtf(float x) { return sqrtf(x); }
  inline float dtMathFloorf(float x) { return floorf(x); }
  inline float dtMathCeilf(float x) { return ceilf(x); }
  inline float dtMathCosf(float x) { return cosf(x); }
  inline float dtMathSinf(float x) { return sinf(x); }
  inline float dtMathAtan2f(float y, float x) { return atan2f(y, x); }
  
  #endif