Trait num::traits::FloatConst[][src]

pub trait FloatConst {
    pub fn E() -> Self;
pub fn FRAC_1_PI() -> Self;
pub fn FRAC_1_SQRT_2() -> Self;
pub fn FRAC_2_PI() -> Self;
pub fn FRAC_2_SQRT_PI() -> Self;
pub fn FRAC_PI_2() -> Self;
pub fn FRAC_PI_3() -> Self;
pub fn FRAC_PI_4() -> Self;
pub fn FRAC_PI_6() -> Self;
pub fn FRAC_PI_8() -> Self;
pub fn LN_10() -> Self;
pub fn LN_2() -> Self;
pub fn LOG10_E() -> Self;
pub fn LOG2_E() -> Self;
pub fn PI() -> Self;
pub fn SQRT_2() -> Self; pub fn TAU() -> Self
    where
        Self: Add<Self, Output = Self>
, { ... }
pub fn LOG10_2() -> Self
    where
        Self: Div<Self, Output = Self>
, { ... }
pub fn LOG2_10() -> Self
    where
        Self: Div<Self, Output = Self>
, { ... } }

Required methods

pub fn E() -> Self[src]

Return Euler’s number.

pub fn FRAC_1_PI() -> Self[src]

Return 1.0 / π.

pub fn FRAC_1_SQRT_2() -> Self[src]

Return 1.0 / sqrt(2.0).

pub fn FRAC_2_PI() -> Self[src]

Return 2.0 / π.

pub fn FRAC_2_SQRT_PI() -> Self[src]

Return 2.0 / sqrt(π).

pub fn FRAC_PI_2() -> Self[src]

Return π / 2.0.

pub fn FRAC_PI_3() -> Self[src]

Return π / 3.0.

pub fn FRAC_PI_4() -> Self[src]

Return π / 4.0.

pub fn FRAC_PI_6() -> Self[src]

Return π / 6.0.

pub fn FRAC_PI_8() -> Self[src]

Return π / 8.0.

pub fn LN_10() -> Self[src]

Return ln(10.0).

pub fn LN_2() -> Self[src]

Return ln(2.0).

pub fn LOG10_E() -> Self[src]

Return log10(e).

pub fn LOG2_E() -> Self[src]

Return log2(e).

pub fn PI() -> Self[src]

Return Archimedes’ constant π.

pub fn SQRT_2() -> Self[src]

Return sqrt(2.0).

Loading content...

Provided methods

pub fn TAU() -> Self where
    Self: Add<Self, Output = Self>, 
[src]

Return the full circle constant τ.

pub fn LOG10_2() -> Self where
    Self: Div<Self, Output = Self>, 
[src]

Return log10(2.0).

pub fn LOG2_10() -> Self where
    Self: Div<Self, Output = Self>, 
[src]

Return log2(10.0).

Loading content...

Implementations on Foreign Types

impl FloatConst for f64[src]

impl FloatConst for f32[src]

Loading content...

Implementors

Loading content...