Gravity Engine 12.0
Unity Asset for Gravity
|
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. | |
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.
|
static |
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.
pointType |
physicsTime |