Gravity Engine 12.0
Unity Asset for Gravity
Loading...
Searching...
No Matches
OrbitUtils.OrbitElements Class Reference

A "struct-like" class that holds all the orbital elements determined by RVtoCOE and used by COEtoRV. There are some specific cases that need to be considered: More...

Public Types

enum  TypeOrbit {
  ELLIPTICAL_INCLINED , CIRCULAR_EQUATORIAL , CIRCULAR_INCLINED , ELLIPTICAL_EQUATORIAL ,
  FREEFALL
}
 

Public Member Functions

 OrbitElements (OrbitElements oe)
 
 OrbitElements (OrbitData orbitData)
 
 OrbitElements (OrbitUniversal orbitU)
 
bool IsInclined ()
 
bool IsCircular ()
 
void ComputeType ()
 
double GetPeriapsis ()
 
void SetPhase (double phaseRadians)
 Set the phase of the orbit. Requires some care since depending on the orbit type different fields in the OE class are used. This derives from the algorithms taken from Vallado.
 
double GetPhase ()
 COE has an awkward was of representing phase. Dig it out from the different places it is stored based on the orbit params.
 
override string ToString ()
 

Public Attributes

double p
 
double a
 
double ecc
 
Vector3d ecc_vec
 
double incl
 
double raan
 
double argp
 
double nu
 
double m
 
double eccanom
 
double arglat
 
double truelon
 
double lonper
 
TypeOrbit typeOrbit
 
double period
 

Detailed Description

A "struct-like" class that holds all the orbital elements determined by RVtoCOE and used by COEtoRV. There are some specific cases that need to be considered:

General orbit (e != 0, i != 0): orientation given by raan, argp Equitorial, e !=0 i = 0 longper (longitide of perigee) [OrbitU uses this as omega_lc] Inclined, circular

Member Function Documentation

◆ GetPhase()

double OrbitUtils.OrbitElements.GetPhase ( )

COE has an awkward was of representing phase. Dig it out from the different places it is stored based on the orbit params.

Parameters
phaseRadians
Returns

◆ SetPhase()

void OrbitUtils.OrbitElements.SetPhase ( double  phaseRadians)

Set the phase of the orbit. Requires some care since depending on the orbit type different fields in the OE class are used. This derives from the algorithms taken from Vallado.

Parameters
phaseRadians

The documentation for this class was generated from the following file: