C# 클래스 kOS.Suffixed.GeoCoordinates

상속: kOS.Suffixed.SpecialValue
파일 보기 프로젝트 열기: KSP-KOS/KOS 1 사용 예제들

공개 메소드들

메소드 설명
Dump ( ) : Dump
GeoCoordinates ( ) : System
GeoCoordinates ( CelestialBody body, SharedObjects sharedObj, double latitude, double longitude ) : System

Build a GeoCoordinates from any arbitrary lat/long pair of floats.

GeoCoordinates ( Orbitable orb, SharedObjects sharedObj ) : System

Build a GeoCoordinates from the current lat/long of the orbitable object passed in. The object being checked for should be in the same SOI as the vessel running the CPU or the results are meaningless.

GeoCoordinates ( SharedObjects sharedObj, double latitude, double longitude ) : System

Build a GeoCoordinates from any arbitrary lat/long pair of doubles.

GeoCoordinates ( SharedObjects sharedObj, float latitude, float longitude ) : System

Build a GeoCoordinates from any arbitrary lat/long pair of floats.

GetAltitudePosition ( ScalarValue altitude ) : Vector

The point above or below the surface of this LAT/LONG from where the current CPU vessel is now.

GetAltitudeVelocities ( ScalarValue altitude ) : OrbitableVelocity

The pair of velocities representing this spot's velocity due to planetary rotation, at this (sea level) altitude:

GetBearing ( ) : ScalarValue

The bearing from the current CPU vessel to the surface spot with the given lat/long coords, relative to the current CPU vessel's heading.

GetPosition ( ) : Vector

The surface point of this LAT/LONG from where the current CPU vessel is now.

GetTerrainAltitude ( ) : ScalarValue

Returns the ground's altitude above sea level at this geo position.

GetVelocities ( ) : OrbitableVelocity

The pair of velocities representing this spot's velocity due to planetary rotation.

LoadDump ( Dump dump ) : void
SetSharedObjects ( SharedObjects sharedObjects ) : void
ToString ( ) : string

비공개 메소드들

메소드 설명
GeoCoordsInitializeSuffixes ( ) : void
GetDistanceFrom ( ) : ScalarValue

The distance of the surface point of this LAT/LONG from where the current CPU vessel is now.

GetHeadingFrom ( ) : ScalarValue

The compass heading from the current position of the CPU vessel to the LAT/LANG position on the SOI body's surface.

메소드 상세

Dump() 공개 메소드

public Dump ( ) : Dump
리턴 Dump

GeoCoordinates() 공개 메소드

public GeoCoordinates ( ) : System
리턴 System

GeoCoordinates() 공개 메소드

Build a GeoCoordinates from any arbitrary lat/long pair of floats.
public GeoCoordinates ( CelestialBody body, SharedObjects sharedObj, double latitude, double longitude ) : System
body CelestialBody A different celestial body to select a lat/long for that might not be the current one
sharedObj SharedObjects to know the current CPU's running vessel
latitude double latitude
longitude double longitude
리턴 System

GeoCoordinates() 공개 메소드

Build a GeoCoordinates from the current lat/long of the orbitable object passed in. The object being checked for should be in the same SOI as the vessel running the CPU or the results are meaningless.
public GeoCoordinates ( Orbitable orb, SharedObjects sharedObj ) : System
orb Orbitable object to take current coords of
sharedObj SharedObjects to know the current CPU's running vessel
리턴 System

GeoCoordinates() 공개 메소드

Build a GeoCoordinates from any arbitrary lat/long pair of doubles.
public GeoCoordinates ( SharedObjects sharedObj, double latitude, double longitude ) : System
sharedObj SharedObjects to know the current CPU's running vessel
latitude double latitude
longitude double longitude
리턴 System

GeoCoordinates() 공개 메소드

Build a GeoCoordinates from any arbitrary lat/long pair of floats.
public GeoCoordinates ( SharedObjects sharedObj, float latitude, float longitude ) : System
sharedObj SharedObjects to know the current CPU's running vessel
latitude float latitude
longitude float longitude
리턴 System

GetAltitudePosition() 공개 메소드

The point above or below the surface of this LAT/LONG from where the current CPU vessel is now.
public GetAltitudePosition ( ScalarValue altitude ) : Vector
altitude ScalarValue The (sea level) altitude to get a position for
리턴 Vector

GetAltitudeVelocities() 공개 메소드

The pair of velocities representing this spot's velocity due to planetary rotation, at this (sea level) altitude:
public GetAltitudeVelocities ( ScalarValue altitude ) : OrbitableVelocity
altitude ScalarValue
리턴 OrbitableVelocity

GetBearing() 공개 메소드

The bearing from the current CPU vessel to the surface spot with the given lat/long coords, relative to the current CPU vessel's heading.
public GetBearing ( ) : ScalarValue
리턴 ScalarValue

GetPosition() 공개 메소드

The surface point of this LAT/LONG from where the current CPU vessel is now.
public GetPosition ( ) : Vector
리턴 Vector

GetTerrainAltitude() 공개 메소드

Returns the ground's altitude above sea level at this geo position.
public GetTerrainAltitude ( ) : ScalarValue
리턴 ScalarValue

GetVelocities() 공개 메소드

The pair of velocities representing this spot's velocity due to planetary rotation.
public GetVelocities ( ) : OrbitableVelocity
리턴 OrbitableVelocity

LoadDump() 공개 메소드

public LoadDump ( Dump dump ) : void
dump Dump
리턴 void

SetSharedObjects() 공개 메소드

public SetSharedObjects ( SharedObjects sharedObjects ) : void
sharedObjects SharedObjects
리턴 void

ToString() 공개 메소드

public ToString ( ) : string
리턴 string