Class CelestialUtilities
- Namespace
- KSP.Utilities
- Assembly
- Assembly-CSharp.dll
public class CelestialUtilities
- Inheritance
-
CelestialUtilities
- Inherited Members
-
- Extension Methods
-
Constructors
CelestialUtilities(IUniverseView)
public CelestialUtilities(IUniverseView universeView)
Parameters
universeView IUniverseView
Methods
GetDifferenceInCoordinates(double, double)
public static double GetDifferenceInCoordinates(double valueA, double valueB)
Parameters
valueA double
valueB double
Returns
- double
GetHighestPeak(CelestialBodyBehavior)
public static double GetHighestPeak(CelestialBodyBehavior body)
Parameters
body CelestialBodyBehavior
Returns
- double
GetMinimumOrbitalDistance(CelestialBodyBehavior, float)
public static double GetMinimumOrbitalDistance(CelestialBodyBehavior body, float margin)
Parameters
body CelestialBodyBehavior
margin float
Returns
- double
GetSolarExtents()
public double GetSolarExtents()
Returns
- double
GreatCircleDistance(CelestialBodyBehavior, double, double, double, double)
public static double GreatCircleDistance(CelestialBodyBehavior body, double latitude1, double longitude1, double latitude2, double longitude2)
Parameters
body CelestialBodyBehavior
latitude1 double
longitude1 double
latitude2 double
longitude2 double
Returns
- double
IsGasGiant(CelestialBodyBehavior)
public static bool IsGasGiant(CelestialBodyBehavior body)
Parameters
body CelestialBodyBehavior
Returns
- bool
KolniyaSMA(CelestialBodyBehavior)
public static double KolniyaSMA(CelestialBodyBehavior body)
Parameters
body CelestialBodyBehavior
Returns
- double
LLAtoECEF(double, double, double, double)
public static Vector3 LLAtoECEF(double lat, double lon, double alt, double radius)
Parameters
lat double
lon double
alt double
radius double
Returns
- Vector3
RandomBody(List<CelestialBodyBehavior>)
public static CelestialBodyBehavior RandomBody(List<CelestialBodyBehavior> bodies)
Parameters
bodies List<CelestialBodyBehavior>
Returns
- CelestialBodyBehavior
SynchronousSMA(CelestialBodyBehavior)
public static double SynchronousSMA(CelestialBodyBehavior body)
Parameters
body CelestialBodyBehavior
Returns
- double
TerrainAltitude(CelestialBodyBehavior, double, double, bool)
public static double TerrainAltitude(CelestialBodyBehavior body, double latitude, double longitude, bool underwater = false)
Parameters
body CelestialBodyBehavior
latitude double
longitude double
underwater bool
Returns
- double