rinia 0.0.20

Stable numeric foundations for graphics, animation, and simulation.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
/// A trait to check if a type is normalized.
pub trait IsNormalized {
    type Tolerance: Copy;

    /// Checks if the type is normalized.
    #[allow(clippy::wrong_self_convention)]
    fn is_normalized(self) -> bool;

    /// Checks if the type is normalized within a given tolerance.
    #[allow(clippy::wrong_self_convention)]
    fn is_normalized_tol(self, tol: Self::Tolerance) -> bool;
}