SPH
Public Member Functions | Public Attributes | List of all members
Kepler::Elements Struct Reference

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...
 

Detailed Description

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.

Definition at line 15 of file TwoBody.h.

Member Function Documentation

◆ ascendingNode()

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.

◆ periapsisArgument()

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.

◆ pericenterDist()

Float Kepler::Elements::pericenterDist ( ) const

Computes the distance of the pericenter.

Definition at line 29 of file TwoBody.cpp.

◆ semiminorAxis()

Float Kepler::Elements::semiminorAxis ( ) const

Computes the semi-minor axis.

Definition at line 33 of file TwoBody.cpp.

Member Data Documentation

◆ a

Float Kepler::Elements::a

Semi-major axis.

Definition at line 16 of file TwoBody.h.

◆ e

Float Kepler::Elements::e

Excentricity.

Definition at line 17 of file TwoBody.h.

◆ i

Float Kepler::Elements::i

Inclination with respect to the z=0 plane.

Definition at line 18 of file TwoBody.h.

◆ K

Vector Kepler::Elements::K

Laplace vector, integral of motion with direction towards pericenter.

Definition at line 21 of file TwoBody.h.

◆ L

Vector Kepler::Elements::L

Angular momentum, perpendicular to the orbital plane.

Definition at line 20 of file TwoBody.h.


The documentation for this struct was generated from the following files: