solarsystems 0.0.1

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

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

pub fn orbit() -> ::uranuss::physics::orbit::UranusOrbit {
    ::uranuss::physics::orbit::UranusOrbit::new()
}

pub fn escape_velocity() -> f64 {
    ::uranuss::physics::orbit::UranusOrbit::escape_velocity_at_surface()
}

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

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

pub fn mean_orbital_velocity() -> f64 {
    ::uranuss::physics::orbit::UranusOrbit::new().mean_orbital_velocity()
}

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

pub fn aphelion() -> f64 {
    ::uranuss::physics::orbit::UranusOrbit::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 interior_ocean_shader() -> crate::rendering::shaders::ShaderEndpoint {
    crate::rendering::shaders::ShaderEndpoint::interior_ocean()
}