absolute_unit 0.11.4

A unit system for Rust's type system to catch unit errors in your physical calculations.
Documentation
use crate::{AngleUnit, Unit};
use std::f64::consts::PI;

#[derive(Clone, Copy, Debug, Default, Eq, Ord, PartialEq, PartialOrd)]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
#[cfg_attr(feature = "bevy_reflect", derive(bevy_reflect::Reflect))]
pub struct ArcSeconds;
impl Unit for ArcSeconds {
    const UNIT_NAME: &'static str = "arcseconds";
    const UNIT_SHORT_NAME: &'static str = "arcsec";
    const UNIT_SUFFIX: &'static str = "\"";
}
impl AngleUnit for ArcSeconds {
    const RADIANS_IN_UNIT: f64 = PI / 180f64 / 60f64 / 60f64;
}

#[macro_export]
macro_rules! arcseconds {
    ($num:expr) => {
        $crate::Angle::<$crate::ArcSeconds>::from(&$num)
    };
}