newnit/velocity/nautical.rs
1//! Nautical units of velocity.
2//!
3//! This module contains predefined newtypes for units of velocity used in
4//! marine, air and space navigation. The base unit is the meter per second.
5
6use super::Velocity;
7use crate::{Unit, make_unit};
8use newnit_derive::{Unit, Velocity};
9
10make_unit!(FathomPerSecond, 1.828_8, Velocity);
11make_unit!(CablePerSecond, 219.456, Velocity);
12make_unit!(MilePerSecond, 1852.0, Velocity);
13
14make_unit!(MilePerHour, 5.144_444_444_444_444_4E-1, Velocity);
15
16pub type Knot = MilePerHour;