Class PlanetLibrary
- Namespace
- NominalSystems.Universe
- Assembly
- NominalSystems.Universe.dll
[Nominal] This library is able to return lists of correct information and data about the available planets in the solar system and the planets that can be added.
public static class PlanetLibrary
- Inheritance
-
PlanetLibrary
Methods
GetSpiceName(string)
Returns the SPICE name of a particular planet based on the planet name. This will check whether the name includes a barycenter or not.
public static string GetSpiceName(string name)
Parameters
name
stringThe name of the planet
Returns
- string
The SPICE name of the object
GetValidBodies()
Returns a list of the names of all available bodies.
public static string[] GetValidBodies()
Returns
- string[]
An array of all valid bodies
IsValidBody(string)
Returns whether a body with a given body name is valid.
public static bool IsValidBody(string body)
Parameters
body
stringThe name of the body
Returns
- bool
A valid flag