C# Class SpaceSim.SolarSystem.MassiveBodyBase

Inheritance: SpaceSim.Physics.GravitationalBodyBase, IMassiveBody, IGpuRenderable
显示文件 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
GetSurfaceGravity ( ) : double
Load ( OpenCLWrapper.OpenCLProxy clProxy ) : void
RenderCl ( OpenCLWrapper.OpenCLProxy clProxy, RectangleD cameraBounds, IPhysicsBody sun ) : void
RenderGdiFallback ( Graphics graphics, RectangleD cameraBounds, IPhysicsBody sun ) : void
Update ( double dt ) : void
Visibility ( RectangleD cameraBounds ) : double

Protected Methods

Method Description
MassiveBodyBase ( DVector2 position, DVector2 velocity, IMassiveKernel kernel ) : System

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

GetSurfaceGravity() public method

public GetSurfaceGravity ( ) : double
return double

Load() public method

public Load ( OpenCLWrapper.OpenCLProxy clProxy ) : void
clProxy OpenCLWrapper.OpenCLProxy
return void

MassiveBodyBase() protected method

protected MassiveBodyBase ( DVector2 position, DVector2 velocity, IMassiveKernel kernel ) : System
position VectorMath.DVector2
velocity VectorMath.DVector2
kernel IMassiveKernel
return System

RenderCl() public method

public RenderCl ( OpenCLWrapper.OpenCLProxy clProxy, RectangleD cameraBounds, IPhysicsBody sun ) : void
clProxy OpenCLWrapper.OpenCLProxy
cameraBounds VectorMath.RectangleD
sun IPhysicsBody
return void

RenderGdiFallback() public method

public RenderGdiFallback ( Graphics graphics, RectangleD cameraBounds, IPhysicsBody sun ) : void
graphics System.Drawing.Graphics
cameraBounds VectorMath.RectangleD
sun IPhysicsBody
return void

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