|
SPH
|
Object holding Keplerian orbital elements of a body. More...
#include <TwoBody.h>
Public Member Functions | |
| Float | periapsisArgument () const |
| Computes the argument of periapsis of the orbit. In the singular case e=0, returns 0. More... | |
| Float | ascendingNode () const |
| Computes the longitude of the ascending node. In the singular case i=0, reutrns 0. More... | |
| Float | pericenterDist () const |
| Computes the distance of the pericenter. More... | |
| Float | semiminorAxis () const |
| Computes the semi-minor axis. More... | |
Public Attributes | |
| Float | a |
| Semi-major axis. More... | |
| Float | e |
| Excentricity. More... | |
| Float | i |
| Inclination with respect to the z=0 plane. More... | |
| Vector | L |
| Angular momentum, perpendicular to the orbital plane. More... | |
| Vector | K |
| Laplace vector, integral of motion with direction towards pericenter. More... | |
Object holding Keplerian orbital elements of a body.
Contains necessary information to determine the orbit of a body. We use the angular momentum and Laplace vector to avoid problems with singular cases (e=0, I=0); the argument of periapsis and the longitude of the ascending node can be computed by calling member functions.
| NAMESPACE_SPH_BEGIN Float Kepler::Elements::ascendingNode | ( | ) | const |
Computes the longitude of the ascending node. In the singular case i=0, reutrns 0.
Definition at line 6 of file TwoBody.cpp.
| Float Kepler::Elements::periapsisArgument | ( | ) | const |
Computes the argument of periapsis of the orbit. In the singular case e=0, returns 0.
Definition at line 15 of file TwoBody.cpp.
| Float Kepler::Elements::pericenterDist | ( | ) | const |
Computes the distance of the pericenter.
Definition at line 29 of file TwoBody.cpp.
| Float Kepler::Elements::semiminorAxis | ( | ) | const |
Computes the semi-minor axis.
Definition at line 33 of file TwoBody.cpp.
| Float Kepler::Elements::i |
| Vector Kepler::Elements::K |
| Vector Kepler::Elements::L |