solarsystems 0.0.1

N-body solar system engine — gravitational dynamics, orbital mechanics, perturbations, event detection, and full celestial orchestration
Documentation
pub use ::earths::atmosphere;
pub use ::earths::biosphere;
pub use ::earths::geodata;
pub use ::earths::geology;
pub use ::earths::hydrology;
pub use ::earths::lighting;
pub use ::earths::physics;
pub use ::earths::rendering;
pub use ::earths::satellites as body_satellites;
pub use ::earths::temporal;
pub use ::earths::terrain;

pub fn surface_gravity() -> f64 {
    *::earths::SURFACEGRAVITY
}

pub fn orbit() -> ::earths::physics::orbit::EarthOrbit {
    ::earths::physics::orbit::EarthOrbit::new()
}

pub fn escape_velocity() -> f64 {
    ::earths::physics::orbit::EarthOrbit::escape_velocity_at_surface()
}

pub fn orbital_period_s() -> f64 {
    ::earths::physics::orbit::EarthOrbit::new().orbitalperiods()
}

pub fn orbital_period_days() -> f64 {
    ::earths::physics::orbit::EarthOrbit::new().orbitalperioddays()
}

pub fn mean_orbital_velocity() -> f64 {
    ::earths::physics::orbit::EarthOrbit::new().mean_orbital_velocity()
}

pub fn perihelion() -> f64 {
    ::earths::physics::orbit::EarthOrbit::new().perihelionm()
}

pub fn aphelion() -> f64 {
    ::earths::physics::orbit::EarthOrbit::new().aphelionm()
}

pub fn terrain_shader() -> crate::rendering::shaders::ShaderEndpoint {
    crate::rendering::shaders::ShaderEndpoint::terrain()
}

pub fn atmosphere_shader() -> crate::rendering::shaders::ShaderEndpoint {
    crate::rendering::shaders::ShaderEndpoint::atmosphere()
}

pub fn ocean_shader() -> crate::rendering::shaders::ShaderEndpoint {
    crate::rendering::shaders::ShaderEndpoint::ocean()
}

pub fn night_lights_shader() -> crate::rendering::shaders::ShaderEndpoint {
    crate::rendering::shaders::ShaderEndpoint::night_lights()
}