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
17
//! Astronomical units of Velocity.
//!
//! This module contains predefined newtypes for units of Velocity used in
//! astronomy as defined by the International Astronomical Union ([IAU]).
//! The base unit is the meter per second.
//!
//! [IAU]: https://www.iau.org/

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

make_unit!(MegaParsecPerSecond, 3.085_677_581_491_37E+22, Velocity);
make_unit!(KiloParsecPerSecond, 3.085_677_581_491_37E+19, Velocity);
make_unit!(ParsecPerSecond, 3.085_677_581_491_37E+16, Velocity);
make_unit!(LightYearPerSecond, 9.460_730_472_580_8E+15, Velocity);
make_unit!(AstronomicalUnitPerSecond, 1.495_978_707E+11, Velocity);