[][src]Trait graphics::radians::Radians

pub trait Radians {
    fn _90() -> Self;
fn _180() -> Self;
fn _360() -> Self;
fn deg_to_rad(self) -> Self;
fn rad_to_deg(self) -> Self; }

Useful constants for radians.

Required methods

fn _90() -> Self

Returns radians corresponding to 90 degrees.

fn _180() -> Self

Returns radians corresponding to 180 degrees.

fn _360() -> Self

Returns radians corresponding to 360 degrees.

fn deg_to_rad(self) -> Self

Convert a value to radians from degrees. Equivalent to value * (π / 180).

fn rad_to_deg(self) -> Self

Convert a value to degrees from radians. Equivalent to value * (180 / π).

Loading content...

Implementations on Foreign Types

impl Radians for f32[src]

impl Radians for f64[src]

Loading content...

Implementors

Loading content...