1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use super::Radius;

impl Radius {
    /// Zero radius.
    pub const ZERO: Self = Self(0.0);

    /// Unit radius.
    pub const ONE: Self = Self(1.0);
}

impl std::fmt::Display for Radius {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        write!(f, "{:.prec$}", self.0, prec = crate::DISPLAY_PRECISION)
    }
}