Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
java函数的等价物是什么
Double EndLat; Double StartLat; Math.toRadians(EndLat - StartLat);
在objective-c中?
#include <math.h> (EndLat - StartLat) * M_PI / 180.0;
如果你要经常使用它,你可能想把它放在一个函数中
那么 Math.toRadians(a) 似乎从角度 a 计算弧度。
根据任何足够的基本数学文本,等效代码将是
结果 = a * 3.14159265358979323846 / 180.0