C# Class kOS.Suffixed.OrbitableVelocity

Holds the velocity of an object in both orbital and prograde reference frames. (Note this may become moot after vector reference frame transformation is implemented.)
Inheritance: kOS.Suffixed.SpecialValue
显示文件 Open project: KSP-KOS/KOS Class Usage Examples

Public Methods

Method Description
OrbitableVelocity ( CelestialBody b, SharedObjects shared ) : kOS.Safe.Encapsulation
OrbitableVelocity ( kOS.Suffixed.Vector orbVel, kOS.Suffixed.Vector surfVel ) : kOS.Safe.Encapsulation

Create a OrbitableVelocity object out of a raw pair of hardcoded orbital and surface velocity: This leaves it up to the caller to be responsible for making sure the orbital and surface velocities match each other.

OrbitableVelocity ( Vessel v ) : kOS.Safe.Encapsulation
ToString ( ) : string

Private Methods

Method Description
InitializeSuffixes ( ) : void

Method Details

OrbitableVelocity() public method

public OrbitableVelocity ( CelestialBody b, SharedObjects shared ) : kOS.Safe.Encapsulation
b CelestialBody
shared SharedObjects
return kOS.Safe.Encapsulation

OrbitableVelocity() public method

Create a OrbitableVelocity object out of a raw pair of hardcoded orbital and surface velocity: This leaves it up to the caller to be responsible for making sure the orbital and surface velocities match each other.
public OrbitableVelocity ( kOS.Suffixed.Vector orbVel, kOS.Suffixed.Vector surfVel ) : kOS.Safe.Encapsulation
orbVel kOS.Suffixed.Vector orbital velocity in raw reference frame
surfVel kOS.Suffixed.Vector surface velocity in raw reference frame
return kOS.Safe.Encapsulation

OrbitableVelocity() public method

public OrbitableVelocity ( Vessel v ) : kOS.Safe.Encapsulation
v Vessel
return kOS.Safe.Encapsulation

ToString() public method

public ToString ( ) : string
return string