use std::f64::consts::PI; pub const GRAVITATIONAL_CONSTANT : f64 = 6.67430e-11; pub const AU : f64 = 1.495979e11; pub type Second = u64; pub type Meter = f64; pub type Rad = f64; pub type Kilogram = f64; pub fn to_rad(deg : f64) -> Rad { (deg / 180.0) * PI }