Module galaxy

Source
Expand description

Provides models for bodies like stars and planets.

Structs§

Atmosphere
GalacticDistance
A distance in light-years between two objects in the galaxy, usually between two systems.
Gravity
Gravity in m/s².
LocalDistance
Model for working with local (system) distances. Expects the value to be in LS.
OrbitInfo
PlanetComposition
Volcanism

Enums§

AtmosphereDensity
AtmosphereElement
AtmosphereError
AtmosphereType
BodyType
Nebula
PlanetClass
PlanetClassError
Region
RingClass
StarClass
StarClassError
StarLuminosity
TerraformState
VolcanismClassification
VolcanismError
VolcanismType

Functions§

bearing_to
Calculates the bearing degrees going from the origin coordinates to the target coordinates.
planet_distance
Calculates the distance between two coords using the give planet radius, which can be given in any scale (so you can use meters or kilometers and the result will use the same scale)