Trait num_traits::float::FloatConst
[−]
[src]
pub trait FloatConst { fn E() -> Self; fn FRAC_1_PI() -> Self; fn FRAC_1_SQRT_2() -> Self; fn FRAC_2_PI() -> Self; fn FRAC_2_SQRT_PI() -> Self; fn FRAC_PI_2() -> Self; fn FRAC_PI_3() -> Self; fn FRAC_PI_4() -> Self; fn FRAC_PI_6() -> Self; fn FRAC_PI_8() -> Self; fn LN_10() -> Self; fn LN_2() -> Self; fn LOG10_E() -> Self; fn LOG2_E() -> Self; fn PI() -> Self; fn SQRT_2() -> Self; }
Required Methods
fn E() -> Self
Return Euler’s number.
fn FRAC_1_PI() -> Self
Return 1.0 / π
.
fn FRAC_1_SQRT_2() -> Self
Return 1.0 / sqrt(2.0)
.
fn FRAC_2_PI() -> Self
Return 2.0 / π
.
fn FRAC_2_SQRT_PI() -> Self
Return 2.0 / sqrt(π)
.
fn FRAC_PI_2() -> Self
Return π / 2.0
.
fn FRAC_PI_3() -> Self
Return π / 3.0
.
fn FRAC_PI_4() -> Self
Return π / 4.0
.
fn FRAC_PI_6() -> Self
Return π / 6.0
.
fn FRAC_PI_8() -> Self
Return π / 8.0
.
fn LN_10() -> Self
Return ln(10.0)
.
fn LN_2() -> Self
Return ln(2.0)
.
fn LOG10_E() -> Self
Return log10(e)
.
fn LOG2_E() -> Self
Return log2(e)
.
fn PI() -> Self
Return Archimedes’ constant.
fn SQRT_2() -> Self
Return sqrt(2.0)
.
Implementations on Foreign Types
impl FloatConst for f32
[src]
impl FloatConst for f32
fn E() -> f32
[src]
fn E() -> f32
fn FRAC_1_PI() -> f32
[src]
fn FRAC_1_PI() -> f32
fn FRAC_1_SQRT_2() -> f32
[src]
fn FRAC_1_SQRT_2() -> f32
fn FRAC_2_PI() -> f32
[src]
fn FRAC_2_PI() -> f32
fn FRAC_2_SQRT_PI() -> f32
[src]
fn FRAC_2_SQRT_PI() -> f32
fn FRAC_PI_2() -> f32
[src]
fn FRAC_PI_2() -> f32
fn FRAC_PI_3() -> f32
[src]
fn FRAC_PI_3() -> f32
fn FRAC_PI_4() -> f32
[src]
fn FRAC_PI_4() -> f32
fn FRAC_PI_6() -> f32
[src]
fn FRAC_PI_6() -> f32
fn FRAC_PI_8() -> f32
[src]
fn FRAC_PI_8() -> f32
fn LN_10() -> f32
[src]
fn LN_10() -> f32
fn LN_2() -> f32
[src]
fn LN_2() -> f32
fn LOG10_E() -> f32
[src]
fn LOG10_E() -> f32
fn LOG2_E() -> f32
[src]
fn LOG2_E() -> f32
fn PI() -> f32
[src]
fn PI() -> f32
fn SQRT_2() -> f32
[src]
fn SQRT_2() -> f32
impl FloatConst for f64
[src]
impl FloatConst for f64
fn E() -> f64
[src]
fn E() -> f64
fn FRAC_1_PI() -> f64
[src]
fn FRAC_1_PI() -> f64
fn FRAC_1_SQRT_2() -> f64
[src]
fn FRAC_1_SQRT_2() -> f64
fn FRAC_2_PI() -> f64
[src]
fn FRAC_2_PI() -> f64
fn FRAC_2_SQRT_PI() -> f64
[src]
fn FRAC_2_SQRT_PI() -> f64
fn FRAC_PI_2() -> f64
[src]
fn FRAC_PI_2() -> f64
fn FRAC_PI_3() -> f64
[src]
fn FRAC_PI_3() -> f64
fn FRAC_PI_4() -> f64
[src]
fn FRAC_PI_4() -> f64
fn FRAC_PI_6() -> f64
[src]
fn FRAC_PI_6() -> f64
fn FRAC_PI_8() -> f64
[src]
fn FRAC_PI_8() -> f64
fn LN_10() -> f64
[src]
fn LN_10() -> f64
fn LN_2() -> f64
[src]
fn LN_2() -> f64
fn LOG10_E() -> f64
[src]
fn LOG10_E() -> f64
fn LOG2_E() -> f64
[src]
fn LOG2_E() -> f64
fn PI() -> f64
[src]
fn PI() -> f64
fn SQRT_2() -> f64
[src]
fn SQRT_2() -> f64