C# Class SpaceSim.Orbits.OrbitHelper

显示文件 Open project: zlynn1990/SpaceSim

Public Methods

Method Description
FromJplEphemeris ( double x, double y ) : DVector2

Converts orbital data from JPL Emphemeris data.

SimulateToTime ( List bodies, System.DateTime targetDate, double timeStep ) : void
TraceMassiveBody ( MassiveBodyBase body, OrbitTrace trace ) : void

Traces a massive body orbit by re-centering the world around the parent.

TraceSpaceCraft ( SpaceCraftBase satellite, OrbitTrace trace ) : void

Traces a space craft orbit by re-centering the world around the parent.

Private Methods

Method Description
GetOrbitalDt ( DVector2 positon, DVector2 velocity, double &terminationRadius ) : double
GetProximityDt ( double altitude, double proxityAltitude ) : double

Method Details

FromJplEphemeris() public static method

Converts orbital data from JPL Emphemeris data.
public static FromJplEphemeris ( double x, double y ) : DVector2
x double
y double
return VectorMath.DVector2

SimulateToTime() public static method

public static SimulateToTime ( List bodies, System.DateTime targetDate, double timeStep ) : void
bodies List
targetDate System.DateTime
timeStep double
return void

TraceMassiveBody() public static method

Traces a massive body orbit by re-centering the world around the parent.
public static TraceMassiveBody ( MassiveBodyBase body, OrbitTrace trace ) : void
body SpaceSim.SolarSystem.MassiveBodyBase
trace OrbitTrace
return void

TraceSpaceCraft() public static method

Traces a space craft orbit by re-centering the world around the parent.
public static TraceSpaceCraft ( SpaceCraftBase satellite, OrbitTrace trace ) : void
satellite SpaceSim.Spacecrafts.SpaceCraftBase
trace OrbitTrace
return void