Trait palette::angle::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

source§

impl RealAngle for f32x4

source§

impl RealAngle for f32x8

source§

impl RealAngle for f64x2

source§

impl RealAngle for f64x4

Implementors§