C# Class kOS.Suffixed.BodyTarget

Inheritance: kOS.Suffixed.SpecialValue
Afficher le fichier Open project: KSP-KOS/KOS Class Usage Examples

Méthodes publiques

Méthode Description
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

Méthodes protégées

Méthode Description
Equals ( BodyTarget other ) : bool

Private Methods

Méthode Description
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:

Method Details

AltitudeFromPosition() public méthode

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
Résultat ScalarValue

BodyTarget() public méthode

public BodyTarget ( ) : System
Résultat System

BodyTarget() public méthode

public BodyTarget ( CelestialBody body, SharedObjects shareObj ) : System
body CelestialBody
shareObj SharedObjects
Résultat System

BodyTarget() public méthode

public BodyTarget ( string name, SharedObjects shareObj ) : System
name string
shareObj SharedObjects
Résultat System

Dump() public méthode

public Dump ( ) : Dump
Résultat Dump

Equals() protected méthode

protected Equals ( BodyTarget other ) : bool
other BodyTarget
Résultat bool

Equals() public méthode

public Equals ( object obj ) : bool
obj object
Résultat bool

GeoCoordinatesFromPosition() public méthode

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
Résultat GeoCoordinates

GetDistance() public méthode

public GetDistance ( ) : double
Résultat double

GetHashCode() public méthode

public GetHashCode ( ) : int
Résultat int

GetName() public méthode

public GetName ( ) : StringValue
Résultat StringValue

GetNorthVector() public méthode

public GetNorthVector ( ) : kOS.Suffixed.Vector
Résultat kOS.Suffixed.Vector

GetOrbitAtUT() public méthode

public GetOrbitAtUT ( double desiredUT ) : Orbit
desiredUT double
Résultat Orbit

GetPosition() public méthode

public GetPosition ( ) : kOS.Suffixed.Vector
Résultat kOS.Suffixed.Vector

GetPositionAtUT() public méthode

public GetPositionAtUT ( kOS.Suffixed.TimeSpan timeStamp ) : kOS.Suffixed.Vector
timeStamp kOS.Suffixed.TimeSpan
Résultat kOS.Suffixed.Vector

GetSuffix() public méthode

public GetSuffix ( string suffixName ) : ISuffixResult
suffixName string
Résultat ISuffixResult

GetUpVector() public méthode

public GetUpVector ( ) : kOS.Suffixed.Vector
Résultat kOS.Suffixed.Vector

GetVelocities() public méthode

public GetVelocities ( ) : OrbitableVelocity
Résultat OrbitableVelocity

GetVelocitiesAtUT() public méthode

public GetVelocitiesAtUT ( kOS.Suffixed.TimeSpan timeStamp ) : OrbitableVelocity
timeStamp kOS.Suffixed.TimeSpan
Résultat OrbitableVelocity

LoadDump() public méthode

public LoadDump ( Dump dump ) : void
dump Dump
Résultat void

SetSharedObjects() public méthode

public SetSharedObjects ( SharedObjects sharedObjects ) : void
sharedObjects SharedObjects
Résultat void

ToString() public méthode

public ToString ( ) : string
Résultat string

operator() public static méthode

public static operator ( ) : bool
Résultat bool