Swarm-NG  1.1
kepler.hpp File Reference

Defines functions for converting between Cartesian & Keplerian coordinates. More...

Go to the source code of this file.

Functions

double mean_to_eccentric_annomaly (const double e, double M)
 calculate mean anomaly to eccentric anomaly
 
void calc_cartesian_for_ellipse (double &x, double &y, double &z, double &vx, double &vy, double &vz, const double a, const double e, const double i, const double O, const double w, const double M, const double GM)
 Calculate the caresian coordinates for the ellipse.
 

Detailed Description

Defines functions for converting between Cartesian & Keplerian coordinates.

Based on code from John Chambers' Mercury code

Cleaned up by Saleh on October 11, 2011. First I split this up into Header/Source files and used it in montecarlo.cpp

Definition in file kepler.hpp.