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§

source

fn deg_to_rad(self) -> Self

source

fn rad_to_deg(self) -> Self

source

fn turns_to_rad(self) -> Self

source

fn rad_to_turns(self) -> Self

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl ConvertAngle for f32

source§

impl ConvertAngle for f64

Implementors§