cosmic::cosmic_theme::palette::angle

Trait RealAngle

source
pub trait RealAngle: Real {
    // Required methods
    fn radians_to_degrees(self) -> Self;
    fn degrees_to_radians(self) -> Self;
}
Expand description

Angle values that are real numbers and can represent both radians and degrees.

Required Methods§

source

fn radians_to_degrees(self) -> Self

Consider self to be radians and convert it to degrees.

source

fn degrees_to_radians(self) -> Self

Consider self to be degrees and convert it to radians.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl RealAngle for f32

source§

impl RealAngle for f64

Implementors§