pull/1678/head
Jason Dekarske 2022-04-08 17:53:36 -07:00
parent e3a5617277
commit 65679f0f3b
1 changed files with 1 additions and 1 deletions

View File

@ -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;