1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
//! rust-rfcalcs constant definitions //! //! Copyright 2017 Ryan Kurte //! use std::f64::*; /// C is the speed of light in air in meters per second pub const C: f64 = 2.998e8; /// R is the (average) radius of the earth pub const R: f64 = 6.371e6; /// Pi for use in formulae pub const PI: f64 = consts::PI;