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

Наследование: kOS.Suffixed.SpecialValue
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
AltitudeFromPosition ( kOS.Suffixed.Vector position ) : ScalarValue

Interpret the vector given as a 3D position, and return the altitude above sea level of this body.

BodyTarget ( ) : System
BodyTarget ( CelestialBody body, SharedObjects shareObj ) : System
BodyTarget ( string name, SharedObjects shareObj ) : System
Dump ( ) : Dump
Equals ( object obj ) : bool
GeoCoordinatesFromPosition ( kOS.Suffixed.Vector position ) : GeoCoordinates

Interpret the vector given as a 3D position, and return the geocoordinates directly underneath it on this body.

GetDistance ( ) : double
GetHashCode ( ) : int
GetName ( ) : StringValue
GetNorthVector ( ) : kOS.Suffixed.Vector
GetOrbitAtUT ( double desiredUT ) : Orbit
GetPosition ( ) : kOS.Suffixed.Vector
GetPositionAtUT ( kOS.Suffixed.TimeSpan timeStamp ) : kOS.Suffixed.Vector
GetSuffix ( string suffixName ) : ISuffixResult
GetUpVector ( ) : kOS.Suffixed.Vector
GetVelocities ( ) : OrbitableVelocity
GetVelocitiesAtUT ( kOS.Suffixed.TimeSpan timeStamp ) : OrbitableVelocity
LoadDump ( Dump dump ) : void
SetSharedObjects ( SharedObjects sharedObjects ) : void
ToString ( ) : string
operator ( ) : bool

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

Метод Описание
Equals ( BodyTarget other ) : bool

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

Метод Описание
BodyInitializeSuffixes ( ) : void
RawAngularVelFromRelative ( Vector3 angularVelFromKSP ) : kOS.Suffixed.Vector

Annoyingly, KSP returns CelestialBody.angularVelociy in a frame of reference relative to the ship facing instead of the universe facing. This would be wonderful if that was their philosophy everywhere, but it's not - its just a weird exception for this one case. This transforms it back into raw universe axes again:

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

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

Interpret the vector given as a 3D position, and return the altitude above sea level of this body.
public AltitudeFromPosition ( kOS.Suffixed.Vector position ) : ScalarValue
position kOS.Suffixed.Vector Vector to use as the 3D position in ship-raw coords
Результат ScalarValue

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

public BodyTarget ( ) : System
Результат System

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

public BodyTarget ( CelestialBody body, SharedObjects shareObj ) : System
body CelestialBody
shareObj SharedObjects
Результат System

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

public BodyTarget ( string name, SharedObjects shareObj ) : System
name string
shareObj SharedObjects
Результат System

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

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

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

protected Equals ( BodyTarget other ) : bool
other BodyTarget
Результат bool

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

public Equals ( object obj ) : bool
obj object
Результат bool

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

Interpret the vector given as a 3D position, and return the geocoordinates directly underneath it on this body.
public GeoCoordinatesFromPosition ( kOS.Suffixed.Vector position ) : GeoCoordinates
position kOS.Suffixed.Vector Vector to use as the 3D position in ship-raw coords
Результат GeoCoordinates

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

public GetDistance ( ) : double
Результат double

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

public GetHashCode ( ) : int
Результат int

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

public GetName ( ) : StringValue
Результат StringValue

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

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

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

public GetOrbitAtUT ( double desiredUT ) : Orbit
desiredUT double
Результат Orbit

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

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

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

public GetPositionAtUT ( kOS.Suffixed.TimeSpan timeStamp ) : kOS.Suffixed.Vector
timeStamp kOS.Suffixed.TimeSpan
Результат kOS.Suffixed.Vector

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

public GetSuffix ( string suffixName ) : ISuffixResult
suffixName string
Результат ISuffixResult

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

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

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

public GetVelocities ( ) : OrbitableVelocity
Результат OrbitableVelocity

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

public GetVelocitiesAtUT ( kOS.Suffixed.TimeSpan timeStamp ) : OrbitableVelocity
timeStamp kOS.Suffixed.TimeSpan
Результат OrbitableVelocity

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

public LoadDump ( Dump dump ) : void
dump Dump
Результат void

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

public SetSharedObjects ( SharedObjects sharedObjects ) : void
sharedObjects SharedObjects
Результат void

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

public ToString ( ) : string
Результат string

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

public static operator ( ) : bool
Результат bool