palette::angle

Trait SignedAngle

Source
pub trait SignedAngle {
    // Required method
    fn normalize_signed_angle(self) -> Self;
}
Expand description

Angle types that can represent the full circle using positive and negative values.

Required Methods§

Source

fn normalize_signed_angle(self) -> Self

Normalize self to a range corresponding to -180 to 180 degrees.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl SignedAngle for f32

Source§

impl SignedAngle for f64

Implementors§