C# Class kOS.Suffixed.OrbitInfo

Inheritance: kOS.Suffixed.SpecialValue
显示文件 Open project: KSP-KOS/KOS Class Usage Examples

Public Methods

Method Description
GetPositionAtUT ( kOS.Suffixed.TimeSpan timeStamp ) : kOS.Suffixed.Vector

Get the position of this thing in this orbit at the given time. Note that it does NOT take into account any encounters or maneuver nodes - it assumes the current orbit patch remains followed forever.

GetVelocityAtUT ( kOS.Suffixed.TimeSpan timeStamp ) : OrbitableVelocity

Get the velocity pairing of this thing in this orbit at the given time. Note that it does NOT take into account any encounters or maneuver nodes - it assumes the current orbit patch remains followed forever.

OrbitInfo ( ) : System
OrbitInfo ( Orbit orb, SharedObjects sharedObj ) : System
OrbitInfo ( Orbitable orb, SharedObjects sharedObj ) : System
ToString ( ) : string

Private Methods

Method Description
GetHasNextPatch ( ) : BooleanValue

Find out whether or not the orbit has a next patch.

GetNextPatch ( ) : OrbitInfo

Return the next OrbitInfo after this one (i.e. transitional encounter)

GetNextPatchETA ( ) : ScalarValue

Returns the ETA of when the nextpatch will happen

InitializeSuffixes ( ) : void

Method Details

GetPositionAtUT() public method

Get the position of this thing in this orbit at the given time. Note that it does NOT take into account any encounters or maneuver nodes - it assumes the current orbit patch remains followed forever.
public GetPositionAtUT ( kOS.Suffixed.TimeSpan timeStamp ) : kOS.Suffixed.Vector
timeStamp kOS.Suffixed.TimeSpan The universal time to query for
return kOS.Suffixed.Vector

GetVelocityAtUT() public method

Get the velocity pairing of this thing in this orbit at the given time. Note that it does NOT take into account any encounters or maneuver nodes - it assumes the current orbit patch remains followed forever.
public GetVelocityAtUT ( kOS.Suffixed.TimeSpan timeStamp ) : OrbitableVelocity
timeStamp kOS.Suffixed.TimeSpan The universal time to query for
return OrbitableVelocity

OrbitInfo() public method

public OrbitInfo ( ) : System
return System

OrbitInfo() public method

public OrbitInfo ( Orbit orb, SharedObjects sharedObj ) : System
orb Orbit
sharedObj SharedObjects
return System

OrbitInfo() public method

public OrbitInfo ( Orbitable orb, SharedObjects sharedObj ) : System
orb Orbitable
sharedObj SharedObjects
return System

ToString() public method

public ToString ( ) : string
return string