Skip to content

Calculate the Hill Sphere radius of a body

License

Notifications You must be signed in to change notification settings

jhermsmeier/node-hill-sphere

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

Calculate the Hill Sphere radius of a body

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published