1.0.0 • Published 9 years ago

hill-sphere v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

Hill Sphere

npm npm downloads build status

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)