newnit 0.1.2

A rich newtype library for units of quantity.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Nautical units of velocity.
//!
//! This module contains predefined newtypes for units of velocity used in
//! marine, air and space navigation. The base unit is the meter per second.

use super::Velocity;
use crate::{Unit, make_unit};
use newnit_derive::{Unit, Velocity};

make_unit!(FathomPerSecond, 1.828_8, Velocity);
make_unit!(CablePerSecond, 219.456, Velocity);
make_unit!(MilePerSecond, 1852.0, Velocity);

make_unit!(MilePerHour, 5.144_444_444_444_444_4E-1, Velocity);

pub type Knot = MilePerHour;