Kerbal Space Program
1.12.4
|
Static Public Member Functions | |
static Vessel.Situations | ApplicableSituation (int seed, CelestialBody body, bool splashAllowed) |
Chooses a random situation that a celestial body is capable of supporting. More... | |
static bool | CanBodyBeKolniya (CelestialBody body) |
Determines whether this celestial body supports Molniya orbits. More... | |
static bool | CanBodyBeSynchronous (CelestialBody body, double eccentricity) |
Determines whether this celestial body supports synchronous orbits. More... | |
static bool | CanBodyBeTundra (CelestialBody body) |
Determines whether this celestial body supports tundra orbits. More... | |
static List< CelestialBody > | ChildrenOf (CelestialBody parentBody) |
Get the children for a specified celestial body. More... | |
static double | GetAltitudeForDensity (CelestialBody body, double density) |
Gets the altitude on the body that has the specified density. Uses the default (not modified by latitude/sun/etc) temperature curve. Returns alt of 0 if requested density > that of the body at sea level. More... | |
static double | GetHighestPeak (CelestialBody body) |
Estimates the altitude of the highest peak of a celestial body. Uses reflection, use sparingly. More... | |
static CelestialBody | GetHostPlanet (CelestialBody body) |
Gets the planet the given body is orbiting, or the sun. More... | |
static double | GetMinimumOrbitalDistance (CelestialBody body, float margin) |
Gets the minimum safe orbital distance from a celestial body. More... | |
static List< CelestialBody > | GetNeighbors (CelestialBody body, Func< CelestialBody, bool > where=null) |
Chooses a random neighbor of a celestial body - a moon, or the reference body. More... | |
static double | GetNextTimeWarp (CelestialBody body, double altitude) |
Gets the next time warp level above a certain altitude. More... | |
static List< CelestialBody > | GetPlanetarySystem (CelestialBody body) |
Gets all the children of the parent planet of the given body. More... | |
static double | GetSolarExtents () |
Gets the extents of the solar system. More... | |
static double | GreatCircleDistance (CelestialBody body, double latitude1, double longitude1, double latitude2, double longitude2) |
Calculates great circle distance between two points on a celestial body. More... | |
static double | GreatCircleDistance (CelestialBody body, Vector3d position1, Vector3d position2) |
Calculates great circle distance between two points on a celestial body. More... | |
static CelestialBody | HighestBody (List< CelestialBody > bodies) |
The celestial body with the highest scientific importance in a List. More... | |
static bool | IsFlyablePlanet (CelestialBody body) |
Determines whether the specified celestial body is a flyable planet. More... | |
static bool | IsGasGiant (CelestialBody body) |
Determines whether the specified celestial body is a gas giant. More... | |
static double | KolniyaSMA (CelestialBody body) |
Calculates the semi major axis of a Molniya orbit. More... | |
static Vector3 | LLAtoECEF (double lat, double lon, double alt, double radius) |
Converts "Longitude Latitude Altitude" to "Earth Centered Earth Fixed" coordinates. More... | |
static CelestialBody | LowestBody (List< CelestialBody > bodies) |
The celestial body with the lowest scientific importance in a List. More... | |
static CelestialBody | MapFocusBody (CelestialBody fallback=null) |
Gets the currently focused celestial body in the planetarium. More... | |
static float | PlanetScienceRanking (CelestialBody body) |
A float the describes a celestial body's relative scientific importance. More... | |
static CelestialBody | RandomBody (List< CelestialBody > bodies) |
Chooses a random celestial body from a List. More... | |
static double | SynchronousSMA (CelestialBody body) |
Calculates the semi major axis of a synchronous orbit. More... | |
static double | TerrainAltitude (CelestialBody body, double latitude, double longitude, bool underwater=false) |
Calculates terrain altitude at a specific position. More... | |
|
inlinestatic |
Chooses a random situation that a celestial body is capable of supporting.
seed | The random seed. |
body | The celestial body to check |
splashAllowed | If splashdowns should be an options |
|
inlinestatic |
Determines whether this celestial body supports Molniya orbits.
body | The celestial body. |
|
inlinestatic |
Determines whether this celestial body supports synchronous orbits.
body | The celestial body. |
eccentricity | The eccentricity of the synchronous orbit. |
|
inlinestatic |
Determines whether this celestial body supports tundra orbits.
body | The celestial body. |
|
inlinestatic |
Get the children for a specified celestial body.
parentBody | The parent celestial body. |
|
inlinestatic |
Gets the altitude on the body that has the specified density. Uses the default (not modified by latitude/sun/etc) temperature curve. Returns alt of 0 if requested density > that of the body at sea level.
body | |
density |
|
inlinestatic |
Estimates the altitude of the highest peak of a celestial body. Uses reflection, use sparingly.
body | The celestial body. |
< Add up the deformities and offsets of all PQSMods on the planet. Known not to work too well with Minmus, but better than nothing.
|
inlinestatic |
Gets the planet the given body is orbiting, or the sun.
body | The given body. |
|
inlinestatic |
Gets the minimum safe orbital distance from a celestial body.
body | The celestial body. |
margin | Distance multiplier. |
< Calculate the actual atmospheric limits.
< Now calculate where the highest terrain is.
< Choose the next timewarp altitude limit just above that estimate. (There are planets with timewarp altitudes below their highest peak.)
|
inlinestatic |
Chooses a random neighbor of a celestial body - a moon, or the reference body.
body | The celestial body. |
where | An optional delegate further describing the desired neighbor. |
|
inlinestatic |
Gets the next time warp level above a certain altitude.
body | The celestial body. |
altitude | The altitude. |
|
inlinestatic |
Gets all the children of the parent planet of the given body.
body | The given body. |
|
inlinestatic |
Gets the extents of the solar system.
|
inlinestatic |
Calculates great circle distance between two points on a celestial body.
body | The celestial body. |
latitude1 | The first latitude. |
longitude1 | The first longitude. |
latitude2 | The second latitude. |
longitude2 | The second longitude. |
|
inlinestatic |
Calculates great circle distance between two points on a celestial body.
body | The celestial body. |
position1 | The first world position. |
position2 | The second world position. |
|
inlinestatic |
The celestial body with the highest scientific importance in a List.
bodies | The celestial bodies. |
|
inlinestatic |
Determines whether the specified celestial body is a flyable planet.
body | The celestial body. |
|
inlinestatic |
Determines whether the specified celestial body is a gas giant.
body | The celestial body. |
|
inlinestatic |
Calculates the semi major axis of a Molniya orbit.
body | The celestial body to orbit. |
< Kolniya orbits have periods of half a day.
|
inlinestatic |
Converts "Longitude Latitude Altitude" to "Earth Centered Earth Fixed" coordinates.
lat | The latitude. |
lon | The longitude. |
alt | The altitude. |
radius | The radius of the celestial body. |
|
inlinestatic |
The celestial body with the lowest scientific importance in a List.
bodies | The celestial bodies. |
|
inlinestatic |
Gets the currently focused celestial body in the planetarium.
|
inlinestatic |
A float the describes a celestial body's relative scientific importance.
body | The celestial body. |
|
inlinestatic |
Chooses a random celestial body from a List.
bodies | The celestial bodies. |
|
inlinestatic |
Calculates the semi major axis of a synchronous orbit.
body | The celestial body to orbit. |
|
inlinestatic |
Calculates terrain altitude at a specific position.
body | The celestial body. |
latitude | The latitude. |
longitude | The longitude. |