Type Alias graphics::math::Scalar

source ·
pub type Scalar = f64;
Expand description

The type used for scalars.

Trait Implementations§

§

impl Radians for f64

§

fn _90() -> f64

Returns radians corresponding to 90 degrees.
§

fn _180() -> f64

Returns radians corresponding to 180 degrees.
§

fn _360() -> f64

Returns radians corresponding to 360 degrees.
§

fn deg_to_rad(self) -> f64

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

fn rad_to_deg(self) -> f64

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