C# Класс kOS.Suffixed.Orbitable

Наследование: kOS.Safe.Serialization.SerializableStructure, IHasSharedObjects
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
GetName ( ) : kOS.Safe.Encapsulation.StringValue

Subclasses must override this method to return a string name of this orbital thing (its vessel name or body name)

GetNorthVector ( ) : kOS.Suffixed.Vector

Subclasses must override this method to return a unit vector in the northward direction of its SOI body.

GetOrbit ( ) : Orbit

Get the KSP Orbit object associated with this orbitable

GetOrbitAtUT ( double desiredUT ) : Orbit

Return the Orbit that the object will be in at some point in the future. If the object is capable of having maneuver nodes and transitions (a vessel), then it should give a prediction under the assumption that the chain of maneuver nodes will be executed as planned.

GetOrbitInfo ( ) : OrbitInfo

Get the OrbitInfo object associated with this Orbitable.

GetParentBody ( ) : CelestialBody
GetPosition ( ) : kOS.Suffixed.Vector

Subclasses must override this method to return the position of this object right now.

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

Subclasses must override this method to return the position of this object at some arbitrary future time. It must take into account any orbital transfers to other SOI's and any planned maneuver nodes (It should return the predicted location under the assumption that the maneuver nodes currently planned will be executed as planned.) (Technically it can also describe positions in the past).

GetPrograde ( ) : kOS.Suffixed.Direction
GetRetrograde ( ) : kOS.Suffixed.Direction
GetSurfacePrograde ( ) : kOS.Suffixed.Direction
GetSurfaceRetrograde ( ) : kOS.Suffixed.Direction
GetUpVector ( ) : kOS.Suffixed.Vector

Subclasses must override this method to return a unit vector in the upward direction away from its SOI body.

GetVelocities ( ) : OrbitableVelocity

Subclasses must override this method to return the velocity of this object right now.

GetVelocitiesAtUT ( kOS.Suffixed.TimeSpan timeStamp ) : OrbitableVelocity

Subclasses must override this method to return the OrbitableVelocity of this object at some arbitrary future time. It must take into account any orbital transfers to other SOI's and any planned maneuver nodes (It should return the predicted location under the assumption that the maneuver nodes currently planned will be executed as planned.) (Technically it can also describe positions in the past).

PositionToAltitude ( kOS.Suffixed.Vector pos ) : double
PositionToLatitude ( kOS.Suffixed.Vector pos ) : double
PositionToLongitude ( kOS.Suffixed.Vector pos ) : double

Защищенные методы

Метод Описание
Orbitable ( ) : kOS.Safe.Encapsulation
Orbitable ( SharedObjects shareObj ) : kOS.Safe.Encapsulation

Приватные методы

Метод Описание
BuildPatchList ( ) : kOS.Suffixed.ListValue
GetDistance ( ) : ScalarValue
HasBody ( ) : BooleanValue
InitializeSuffixes ( ) : void

Описание методов

GetName() публичный абстрактный Метод

Subclasses must override this method to return a string name of this orbital thing (its vessel name or body name)
public abstract GetName ( ) : kOS.Safe.Encapsulation.StringValue
Результат kOS.Safe.Encapsulation.StringValue

GetNorthVector() публичный абстрактный Метод

Subclasses must override this method to return a unit vector in the northward direction of its SOI body.
public abstract GetNorthVector ( ) : kOS.Suffixed.Vector
Результат kOS.Suffixed.Vector

GetOrbit() публичный Метод

Get the KSP Orbit object associated with this orbitable
public GetOrbit ( ) : Orbit
Результат Orbit

GetOrbitAtUT() публичный абстрактный Метод

Return the Orbit that the object will be in at some point in the future. If the object is capable of having maneuver nodes and transitions (a vessel), then it should give a prediction under the assumption that the chain of maneuver nodes will be executed as planned.
public abstract GetOrbitAtUT ( double desiredUT ) : Orbit
desiredUT double the timestamp when to query for
Результат Orbit

GetOrbitInfo() публичный Метод

Get the OrbitInfo object associated with this Orbitable.
public GetOrbitInfo ( ) : OrbitInfo
Результат OrbitInfo

GetParentBody() публичный Метод

public GetParentBody ( ) : CelestialBody
Результат CelestialBody

GetPosition() публичный абстрактный Метод

Subclasses must override this method to return the position of this object right now.
public abstract GetPosition ( ) : kOS.Suffixed.Vector
Результат kOS.Suffixed.Vector

GetPositionAtUT() публичный абстрактный Метод

Subclasses must override this method to return the position of this object at some arbitrary future time. It must take into account any orbital transfers to other SOI's and any planned maneuver nodes (It should return the predicted location under the assumption that the maneuver nodes currently planned will be executed as planned.) (Technically it can also describe positions in the past).
public abstract GetPositionAtUT ( kOS.Suffixed.TimeSpan timeStamp ) : kOS.Suffixed.Vector
timeStamp kOS.Suffixed.TimeSpan The universal time of the future prediction
Результат kOS.Suffixed.Vector

GetPrograde() публичный Метод

public GetPrograde ( ) : kOS.Suffixed.Direction
Результат kOS.Suffixed.Direction

GetRetrograde() публичный Метод

public GetRetrograde ( ) : kOS.Suffixed.Direction
Результат kOS.Suffixed.Direction

GetSurfacePrograde() публичный Метод

public GetSurfacePrograde ( ) : kOS.Suffixed.Direction
Результат kOS.Suffixed.Direction

GetSurfaceRetrograde() публичный Метод

public GetSurfaceRetrograde ( ) : kOS.Suffixed.Direction
Результат kOS.Suffixed.Direction

GetUpVector() публичный абстрактный Метод

Subclasses must override this method to return a unit vector in the upward direction away from its SOI body.
public abstract GetUpVector ( ) : kOS.Suffixed.Vector
Результат kOS.Suffixed.Vector

GetVelocities() публичный абстрактный Метод

Subclasses must override this method to return the velocity of this object right now.
public abstract GetVelocities ( ) : OrbitableVelocity
Результат OrbitableVelocity

GetVelocitiesAtUT() публичный абстрактный Метод

Subclasses must override this method to return the OrbitableVelocity of this object at some arbitrary future time. It must take into account any orbital transfers to other SOI's and any planned maneuver nodes (It should return the predicted location under the assumption that the maneuver nodes currently planned will be executed as planned.) (Technically it can also describe positions in the past).
public abstract GetVelocitiesAtUT ( kOS.Suffixed.TimeSpan timeStamp ) : OrbitableVelocity
timeStamp kOS.Suffixed.TimeSpan The universal time of the future prediction
Результат OrbitableVelocity

Orbitable() защищенный Метод

protected Orbitable ( ) : kOS.Safe.Encapsulation
Результат kOS.Safe.Encapsulation

Orbitable() защищенный Метод

protected Orbitable ( SharedObjects shareObj ) : kOS.Safe.Encapsulation
shareObj SharedObjects
Результат kOS.Safe.Encapsulation

PositionToAltitude() публичный Метод

public PositionToAltitude ( kOS.Suffixed.Vector pos ) : double
pos kOS.Suffixed.Vector
Результат double

PositionToLatitude() публичный Метод

public PositionToLatitude ( kOS.Suffixed.Vector pos ) : double
pos kOS.Suffixed.Vector
Результат double

PositionToLongitude() публичный Метод

public PositionToLongitude ( kOS.Suffixed.Vector pos ) : double
pos kOS.Suffixed.Vector
Результат double