![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
几何题
抠脚老騷
这个作者很懒,什么都没留下…
展开
-
牛客小白22 I工具人
牛客小白22 I工具人 #include <bits/stdc++.h> using namespace std; #define int ll typedef long long ll; const int INF = 0x3f3f3f3f; const int mod = 1e9 + 7; const int maxn = 1e5 + 10; const double eps = 1e-8, pi = acos(-1); struct node { int type, id;原创 2020-09-04 19:25:13 · 108 阅读 · 0 评论 -
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 ); atan 和 atan2 区别: 1:参数的填写方式不同; 2:atan2 的优点在于 如果 x2-x1等于0 依然可以计算,但是atan函数就会导致程转载 2020-09-04 17:04:25 · 384 阅读 · 0 评论