absolute_unit/unit/
pounds_force.rs1use crate::{Feet, ForceUnit, PoundsMass, Seconds, Unit};
2
3#[derive(Clone, Copy, Debug, Default, Eq, Ord, PartialEq, PartialOrd)]
4pub struct PoundsForce;
5impl Unit for PoundsForce {
6 const UNIT_NAME: &'static str = "pounds(force)";
7 const UNIT_SHORT_NAME: &'static str = "lbf";
8 const UNIT_SUFFIX: &'static str = "lbf";
9}
10impl ForceUnit for PoundsForce {
11 const NEWTONS_IN_UNIT: f64 = 1. / 0.224_809;
12
13 type UnitMass = PoundsMass;
14 type UnitLength = Feet;
15 type UnitTime = Seconds;
16}
17
18#[macro_export]
19macro_rules! pounds_force {
20 ($num:expr) => {
21 $crate::Force::<$crate::PoundsForce>::from(&$num)
22 };
23}
24
25#[macro_export]
26macro_rules! pdl {
27 ($num:expr) => {
28 $crate::Force::<$crate::PoundsForce>::from(&$num)
29 };
30}