hill-sphere
v1.0.0
Published
Calculate the radius of the Hill Sphere
Downloads
29
Maintainers
Readme
Hill Sphere
Install via npm
$ npm install hill-sphere
Usage
var hillSphere = require( 'hill-sphere' )
// Mass of Earth in kg
var earth = 5.97219 * 1e24
// Mass of Sun in kg
var sun = 1.98855 * 1e30
// Distance between Earth & Sun in km
var distance = 149598261
// Earth's eccentricity
var eccentricity = 0.01671123
// Calculate Earth's Hill Sphere radius in respect to the Sun
var radius = hillSphere( earth, sun, distance, eccentricity )
// -> 1471520.2387246473 (km)