Trait angulus::ToAngle

source ·
pub trait ToAngle: Sized {
    fn rad(self) -> Angle<Self>;
    fn rad_unbounded(self) -> AngleUnbounded<Self>;
    fn deg(self) -> Angle<Self>;
    fn deg_unbounded(self) -> AngleUnbounded<Self>;
    fn turns(self) -> Angle<Self>;
    fn turns_unbounded(self) -> AngleUnbounded<Self>;
    fn grad(self) -> Angle<Self>;
    fn grad_unbounded(self) -> AngleUnbounded<Self>;
}
Expand description

Helper trait to convert a numerical value into an angle.

Required Methods§

source

fn rad(self) -> Angle<Self>

Creates an angle with the value as radians.

source

fn rad_unbounded(self) -> AngleUnbounded<Self>

Creates an unbounded angle with the value as radians.

source

fn deg(self) -> Angle<Self>

Creates an angle with the value as degrees.

source

fn deg_unbounded(self) -> AngleUnbounded<Self>

Creates an unbounded angle with the value as degrees.

source

fn turns(self) -> Angle<Self>

Creates an angle with the value as turns.

source

fn turns_unbounded(self) -> AngleUnbounded<Self>

Creates an unbounded angle with the value as turns.

source

fn grad(self) -> Angle<Self>

Creates an angle with the value as gradians.

source

fn grad_unbounded(self) -> AngleUnbounded<Self>

Creates an unbounded angle with the value as gradians.

Implementors§

source§

impl<F: Float> ToAngle for F