Trait nannou::math::ConvertAngle
source · pub trait ConvertAngle {
// Required methods
fn deg_to_rad(self) -> Self;
fn rad_to_deg(self) -> Self;
fn turns_to_rad(self) -> Self;
fn rad_to_turns(self) -> Self;
}
Expand description
Functions for converting between angle representations.
Only implemented for f32
and f64
.
Required Methods§
fn deg_to_rad(self) -> Self
fn rad_to_deg(self) -> Self
fn turns_to_rad(self) -> Self
fn rad_to_turns(self) -> Self
Object Safety§
This trait is not object safe.