找回密码
 点一下
查看: 3330|回复: 3

几个数学函数。

[复制链接]
发表于 2010-6-13 02:50:05 | 显示全部楼层 |阅读模式
  1. // Basic
  2. int round(fixed f);
  3. int floor(fixed f);
  4. int ceil(fixed f);
  5. bool isInt(fixed f);
  6. fixed mod(fixed f, fixed k);
  7. // Trigonometric
  8. const fixed PI = 3.14159265;
  9. const fixed PI_OVER_TWO = 1.570796326795;
  10. const fixed ONE_OVER_PI = 0.318309886183;
  11. const fixed SQRT_TWO = 1.414213562373;
  12. const fixed MATH_E = 2.718281828459;
  13. fixed cos (fixed x);
  14. fixed sin (fixed x);
  15. fixed tan (fixed x);
  16. fixed sec (fixed x);
  17. fixed csc (fixed x);
  18. fixed cot (fixed x);
  19. fixed DegToRad (fixed x);
  20. fixed RadToDeg (fixed x);
  21. // Point
  22. fixed PointX(point p);
  23. fixed PointY(point p);
  24. const fixed PI_OVER_TWO = 1.570796326795;
  25. const fixed ONE_OVER_PI = 0.318309886183;
  26. const fixed SQRT_TWO = 1.414213562373;
  27. const fixed MATH_E = 2.718281828459;
  28. fixed sec (fixed x);
  29. fixed csc (fixed x);
  30. fixed cot (fixed x);
复制代码


via SC2mapster

math.rar

3 KB, 下载次数: 30

发表于 2012-1-30 00:34:17 | 显示全部楼层
          
回复

使用道具 举报

发表于 2012-1-30 00:35:40 | 显示全部楼层
回复

使用道具 举报

发表于 2012-4-12 21:31:01 | 显示全部楼层
[s:166] [s:166] [s:166]
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 点一下

本版积分规则

Archiver|移动端|小黑屋|地精研究院

GMT+8, 2024-5-22 22:39 , Processed in 0.183609 second(s), 22 queries .

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表