C# 클래스 kOS.Suffixed.Orbitable

상속: kOS.Safe.Serialization.SerializableStructure, IHasSharedObjects
파일 보기 프로젝트 열기: KSP-KOS/KOS 1 사용 예제들

공개 메소드들

메소드 설명
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