solarsystems 0.0.1

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

pub fn orbit() -> ::phoboss::physics::orbit::PhobosOrbit {
    ::phoboss::physics::orbit::PhobosOrbit::new()
}

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

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

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

pub fn orbital_period_s() -> f64 {
    ::phoboss::physics::orbit::PhobosOrbit::new().orbital_period_s()
}

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

pub fn apoapsis() -> f64 {
    ::phoboss::physics::orbit::PhobosOrbit::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()
}