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

OrbitPropagator provides a mechanism to initialize an orbit and then determine the position and velocity at a future time. More...

Public Types

enum  PointType {
  APOAPSIS , PERIAPSIS , ALTITUDE_1ST , ALTITUDE_2ND ,
  ASCENDING_NODE , DESCENDING_NODE
}
 

Public Member Functions

 OrbitPropagator (Vector3d r0, Vector3d v0, double time0, double mu)
 
double PropToPoint (PointType pointType)
 
double TimeOfFlight (Vector3d r1)
 
Vector3d PropagateToTime (double physicsTime)
 
override string ToString ()
 

Static Public Member Functions

static OrbitPropagator GetPropagator (OrbitUniversal orbitU)
 Init from an OrbitUniversal.
 

Public Attributes

 Vector3d
 Determine the position, velocity and time at a specific type of future point.
 

Detailed Description

OrbitPropagator provides a mechanism to initialize an orbit and then determine the position and velocity at a future time.

The initialization can be done via:

OrbitPropagator ALWAYS works in relative R, V values i.e. it assumes that the central mass is at (0,0,0)!

Future position/velocity is returned as a tuple when PropagateToTime(time) is called. This pos/vel is relative to the center object and not a world value!

This class does not require an NBody or game object to be present.

Member Function Documentation

◆ GetPropagator()

static OrbitPropagator OrbitPropagator.GetPropagator ( OrbitUniversal  orbitU)
static

Init from an OrbitUniversal.

Parameters
orbitU
Returns

Member Data Documentation

◆ Vector3d

OrbitPropagator.Vector3d

Determine the position, velocity and time at a specific type of future point.

Propagate the orbit to the specified time. Uses a modified version of the Vallado Kepler routine.

Parameters
pointType
Returns
the RELATIVE r, V and time for the specified orbit point
Parameters
physicsTime
Returns
Relative (position, velocity)

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