Gravity Engine 2 9.0
Loading...
Searching...
No Matches
GravityEngine2.BodyInitData Class Reference

Container class to hold common info for init of an orbital body. More...

Public Types

enum  InitDataType {
  RV_ABSOLUTE , RV_RELATIVE , COE , COE_ApoPeri ,
  COE_HYPERBOLA , TWO_LINE_ELEMENT , LATLONG_POS
}
 
enum  LatLongType { CUSTOM , EARTH_SURFACE }
 
enum  StartEpochType { TIME_ADDED , WORLD_TIME , DMY_UTC , JULIAN_DATE }
 

Public Member Functions

 BodyInitData (InitDataType initData)
 
double EpochTimeWorld (double startTimeJD)
 Determine the epoch time in world time units.
 
bool FillInCOE (Orbital.COE coe)
 Fill in the provided COE with the orbital elements in the units defined by the BID.
 
bool IsCOEType ()
 
bool IsRVType ()
 

Public Attributes

double a = 10.0
 
double altitude
 
double apoapsis = 10.0
 
GSBoosterMultiStage boosterStage
 
bool earthRotation = true
 
double eccentricity = 0.0
 
bool haveSatData
 
double inclination = 0.0
 
InitDataType initData = InitDataType.RV_ABSOLUTE
 
double latitude
 
LatLongType latLongType = LatLongType.CUSTOM
 
double longitude
 
double nu = 0.0
 
double omega_lc = 0.0
 
double omega_uc = 0.0
 
double p_semi = 10.0
 
double periapsis = 10.0
 
double3 r
 
SGP4SatData satData
 
EarthLaunchSite.Site site
 
int startEpochDay
 
double startEpochJD = 0.0
 
int startEpochMonth
 
StartEpochType startEpochType = StartEpochType.TIME_ADDED
 
double startEpochUtc
 
double startEpochWorldTime
 
int startEpochYear
 
string tleData = null
 
GBUnits.Units units
 
bool useTleEpoch = true
 
double3 v
 

Detailed Description

Container class to hold common info for init of an orbital body.

Currently used in GSBody and GSDisplayOrbit (when want to show an orbit without a link to an existing body)

Member Function Documentation

◆ EpochTimeWorld()

double GravityEngine2.BodyInitData.EpochTimeWorld ( double startTimeJD)

Determine the epoch time in world time units.

Parameters
startTimeJD
Returns

◆ FillInCOE()

bool GravityEngine2.BodyInitData.FillInCOE ( Orbital::COE coe)

Fill in the provided COE with the orbital elements in the units defined by the BID.

Parameters
coe
Returns

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