Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
atan2 是标准库的辐角,范围-pi~pi如果要0~2Pi就是 double calc(int x, int y) { double atan = atan2(y, x); if (atan < 0) { atan += 3.1415926535897932384626 * 2; } return atan; } Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator