Skip to main content

NormalizeAngle

Trait NormalizeAngle 

Source
pub trait NormalizeAngle<T = Self> {
    type Output;

    // Required method
    fn normalize_angle(self) -> Self::Output;
}

Required Associated Types§

Required Methods§

Source

fn normalize_angle(self) -> Self::Output

Normalizes the angle into the range -π to π.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl NormalizeAngle for f32

Available on crate feature std only.
Source§

impl NormalizeAngle for f64

Available on crate feature std only.

Implementors§