![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
算法
chris 007
这个作者很懒,什么都没留下…
展开
-
atan和atan2的一点小区别
atan和atan2的一点小区别atan 和 atan2 都是求反正切函数,如:有两个点 point(x1,y1), 和 point(x2,y2);那么这两个点形成的斜率的角度计算方法分别是:float angle = atan( (y2-y1)/(x2-x1) );或float angle = atan2( y2-y1, x2-x1 );转载 2016-11-04 13:12:50 · 471 阅读 · 0 评论 -
快速排序算法
JavaScript快速排序法应用这周一直在给项目里的手机版游戏做成PC版本在为其换UI中度过,同时在遇到新界面的时候,PC版本和手机版的界面不同,所以界面也算是要重做了,下面是本周用到的一个算法之一,快速排序。在说到排序,最一开始我会的只有冒泡排序:冒泡排序一个C++的小例子:#include <iostream>#include <Windows.h>using namespace s转载 2016-12-31 12:41:44 · 244 阅读 · 0 评论