UNPKG

keplerjs

Version:

Kepler solver to compute a celestial body position over the surface of the earth.

21 lines (16 loc) 261 B
/** * Astrodynamics | Kepler Solver * Author: Edgar Gago Carrillo * Date 16/03/2021 * * Inputs: * variable in degrees * * Outputs: * x but in radiants * * Description: * From rad to degrees * */ exports.deg2rad = (x) => x * Math.PI / 180;