[][src]Trait piston_window::Radians

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

Useful constants for radians.

Required methods

pub fn _90() -> Self[src]

Returns radians corresponding to 90 degrees.

pub fn _180() -> Self[src]

Returns radians corresponding to 180 degrees.

pub fn _360() -> Self[src]

Returns radians corresponding to 360 degrees.

pub fn deg_to_rad(self) -> Self[src]

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

pub fn rad_to_deg(self) -> Self[src]

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...