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§
sourcefn rad_unbounded(self) -> AngleUnbounded<Self>
fn rad_unbounded(self) -> AngleUnbounded<Self>
Creates an unbounded angle with the value as radians.
sourcefn deg_unbounded(self) -> AngleUnbounded<Self>
fn deg_unbounded(self) -> AngleUnbounded<Self>
Creates an unbounded angle with the value as degrees.
sourcefn turns_unbounded(self) -> AngleUnbounded<Self>
fn turns_unbounded(self) -> AngleUnbounded<Self>
Creates an unbounded angle with the value as turns.
sourcefn grad_unbounded(self) -> AngleUnbounded<Self>
fn grad_unbounded(self) -> AngleUnbounded<Self>
Creates an unbounded angle with the value as gradians.