Trait nalgebra::BaseFloat
[−]
[src]
pub trait BaseFloat: Float + Cast<f64> + BaseNum + Neg { fn pi() -> Self; fn two_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 frac_1_pi() -> Self; fn frac_2_pi() -> Self; fn frac_2_sqrt_pi() -> Self; fn e() -> Self; fn log2_e() -> Self; fn log10_e() -> Self; fn ln_2() -> Self; fn ln_10() -> Self; }
Basic floating-point number numeric trait.
Required Methods
fn pi() -> Self
Archimedes' constant.
fn two_pi() -> Self
2.0 * pi.
fn frac_pi_2() -> Self
pi / 2.0.
fn frac_pi_3() -> Self
pi / 3.0.
fn frac_pi_4() -> Self
pi / 4.0.
fn frac_pi_6() -> Self
pi / 6.0.
fn frac_pi_8() -> Self
pi / 8.0.
fn frac_1_pi() -> Self
1.0 / pi.
fn frac_2_pi() -> Self
2.0 / pi.
fn frac_2_sqrt_pi() -> Self
2.0 / sqrt(pi).
fn e() -> Self
Euler's number.
fn log2_e() -> Self
log2(e).
fn log10_e() -> Self
log10(e).
fn ln_2() -> Self
ln(2.0).
fn ln_10() -> Self
ln(10.0).