spaceman 0.1.0

A WIP library for calculating common orbital maneuvers in Kerbal Space Program.
Documentation
//! A utility crate for calculations around Kerbal Space Program.
//!
//! All units are SI base units:
//!
//! | Measure | Unit |
//! |---------|------|
//! | Time    | s    |
//! | Length  | m    |
//! | Mass    | kg   |

pub mod bielliptic_transfer;
pub mod celestial_bodies;
pub mod hohmann_transfer;
pub mod relay_network;

pub mod prelude {
    pub use crate::bielliptic_transfer::BiellipticTransfer;
    pub use crate::celestial_bodies::CelestialBody;
    pub use crate::hohmann_transfer::HohmannTransfer;
    pub use crate::relay_network::RelayNetwork;
    pub use crate::Apsis;
    pub use crate::GRAVITATIONAL_CONSTANT;
}

/// The gravitational constant in m³·kg⁻¹·s⁻².
pub const GRAVITATIONAL_CONSTANT: f64 = 6.67430e-11;

/// The farthest or nearest point of a body's orbit around its primary body.
#[derive(Copy, Clone, Debug)]
pub enum Apsis {
    /// Apoapsis, the farthest point.
    Apo,
    /// Periapsis, the nearest point.
    Peri,
}