mirror of https://github.com/espruino/BangleApps
typo
parent
e3a5617277
commit
65679f0f3b
|
@ -4,7 +4,7 @@ const EARTHRADIUS = 6371000; //km
|
||||||
function radians(a) {
|
function radians(a) {
|
||||||
return a * Math.PI / 180;
|
return a * Math.PI / 180;
|
||||||
}
|
}
|
||||||
position
|
|
||||||
function degrees(a) {
|
function degrees(a) {
|
||||||
let d = a * 180 / Math.PI;
|
let d = a * 180 / Math.PI;
|
||||||
return (d + 360) % 360;
|
return (d + 360) % 360;
|
||||||
|
|
Loading…
Reference in New Issue