solarsystems 0.0.1

N-body solar system engine — gravitational dynamics, orbital mechanics, perturbations, event detection, and full celestial orchestration
Documentation
pub use ::oberons::environment;
pub use ::oberons::exosphere;
pub use ::oberons::geodata;
pub use ::oberons::geology;
pub use ::oberons::interactions;
pub use ::oberons::lighting;
pub use ::oberons::missions;
pub use ::oberons::observation;
pub use ::oberons::physics;
pub use ::oberons::rendering;
pub use ::oberons::resources;
pub use ::oberons::surface;
pub use ::oberons::temporal;
pub use ::oberons::terrain;

pub fn orbit() -> ::oberons::physics::orbit::OberonOrbit {
    ::oberons::physics::orbit::OberonOrbit::new()
}

pub fn surface_gravity() -> f64 {
    ::oberons::SURFACE_GRAVITY_M_S2
}

pub fn escape_velocity() -> f64 {
    ::oberons::ESCAPE_VELOCITY_M_S
}

pub fn geometric_albedo() -> f64 {
    ::oberons::GEOMETRIC_ALBEDO
}

pub fn orbital_period_s() -> f64 {
    ::oberons::physics::orbit::OberonOrbit::new().orbital_period_s()
}

pub fn periapsis() -> f64 {
    ::oberons::physics::orbit::OberonOrbit::new().periapsis_m()
}

pub fn apoapsis() -> f64 {
    ::oberons::physics::orbit::OberonOrbit::new().apoapsis_m()
}

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

pub fn eclipse_shader() -> crate::rendering::shaders::ShaderEndpoint {
    crate::rendering::shaders::ShaderEndpoint::eclipse()
}