newnit/velocity/
metric.rs

1//! Metric units of velocity
2//!
3//! This module contains predefined newtypes for units of velocity as defined in
4//! the International System of Units (SI). The base unit is the meter per
5//! second.
6//!
7//! Additional definition provided for the Ångström per second (Å/s) = 1E-10
8//! m/s.
9
10use super::Velocity;
11use crate::{Unit, make_unit};
12use newnit_derive::{Unit, Velocity};
13
14make_unit!(QuettaMeterPerSecond, 1E+30, Velocity);
15make_unit!(RonnaMeterPerSecond, 1E+27, Velocity);
16make_unit!(YottaMeterPerSecond, 1E+24, Velocity);
17make_unit!(ZettaMeterPerSecond, 1E+21, Velocity);
18make_unit!(ExaMeterPerSecond, 1E+18, Velocity);
19make_unit!(PetaMeterPerSecond, 1E+15, Velocity);
20make_unit!(TeraMeterPerSecond, 1E+12, Velocity);
21make_unit!(GigaMeterPerSecond, 1E+9, Velocity);
22make_unit!(MegaMeterPerSecond, 1E+6, Velocity);
23make_unit!(KiloMeterPerSecond, 1E+3, Velocity);
24make_unit!(MeterPerSecond, 1.0, Velocity);
25make_unit!(DeciMeterPerSecond, 1E-1, Velocity);
26make_unit!(CentiMeterPerSecond, 1E-2, Velocity);
27make_unit!(MilliMeterPerSecond, 1E-3, Velocity);
28make_unit!(MicroMeterPerSecond, 1E-6, Velocity);
29make_unit!(NanoMeterPerSecond, 1E-9, Velocity);
30make_unit!(PicoMeterPerSecond, 1E-12, Velocity);
31make_unit!(FemtoMeterPerSecond, 1E-15, Velocity);
32make_unit!(AttoMeterPerSecond, 1E-18, Velocity);
33make_unit!(ZeptoMeterPerSecond, 1E-21, Velocity);
34make_unit!(YoctoMeterPerSecond, 1E-24, Velocity);
35make_unit!(RontoMeterPerSecond, 1E-27, Velocity);
36make_unit!(QuectoMeterPerSecond, 1E-30, Velocity);
37
38make_unit!(AngstromPerSecond, 1E-10, Velocity);
39
40make_unit!(KiloMeterPerHour, 2.777_777_777_777_777_8E-1, Velocity);