C# Class SpaceSim.Proxies.MassiveBodyProxy

Massive body proxy used for doing orbital approximations and traces.
Inheritance: SpaceSim.Physics.GravitationalBodyBase, IMassiveBody
Show file Open project: zlynn1990/SpaceSim Class Usage Examples

Public Methods

Method Description
ComputeBoundingBox ( ) : RectangleD
FixedUpdate ( SpaceSim.Physics.TimeStep timeStep ) : void
GetAtmosphericDensity ( double altitude ) : double
GetAtmosphericViscosity ( double altitude ) : double
GetIspMultiplier ( double altitude ) : double
GetRelativeHeight ( DVector2 position ) : double
GetSurfaceGravity ( ) : double
MassiveBodyProxy ( DVector2 position, DVector2 velocity, IMassiveBody massiveBody ) : System.Drawing
Update ( double dt ) : void
Visibility ( RectangleD cameraBounds ) : double

Method Details

ComputeBoundingBox() public method

public ComputeBoundingBox ( ) : RectangleD
return VectorMath.RectangleD

FixedUpdate() public method

public FixedUpdate ( SpaceSim.Physics.TimeStep timeStep ) : void
timeStep SpaceSim.Physics.TimeStep
return void

GetAtmosphericDensity() public method

public GetAtmosphericDensity ( double altitude ) : double
altitude double
return double

GetAtmosphericViscosity() public method

public GetAtmosphericViscosity ( double altitude ) : double
altitude double
return double

GetIspMultiplier() public method

public GetIspMultiplier ( double altitude ) : double
altitude double
return double

GetRelativeHeight() public method

public GetRelativeHeight ( DVector2 position ) : double
position VectorMath.DVector2
return double

GetSurfaceGravity() public method

public GetSurfaceGravity ( ) : double
return double

MassiveBodyProxy() public method

public MassiveBodyProxy ( DVector2 position, DVector2 velocity, IMassiveBody massiveBody ) : System.Drawing
position VectorMath.DVector2
velocity VectorMath.DVector2
massiveBody IMassiveBody
return System.Drawing

Update() public method

public Update ( double dt ) : void
dt double
return void

Visibility() public method

public Visibility ( RectangleD cameraBounds ) : double
cameraBounds VectorMath.RectangleD
return double