logo
pub trait Scalar: Float + NumCast + FloatConst + Sized + Display + Debug + Trig + AddAssign + SubAssign + MulAssign + DivAssign {
Show 14 associated constants and 2 methods const HALF: Self; const ZERO: Self; const ONE: Self; const TWO: Self; const THREE: Self; const FOUR: Self; const FIVE: Self; const SIX: Self; const SEVEN: Self; const EIGHT: Self; const NINE: Self; const TEN: Self; const EPSILON: Self; const DIV_EPSILON: Self = Self::EPSILON; fn value(v: f32) -> Self; fn epsilon_for(_reference: Self) -> Self { ... }
}

Required Associated Constants

Provided Associated Constants

Required Methods

Provided Methods

Epsilon constants are usually not a good way to deal with float precision. Float precision depends on the magnitude of the values and so should appropriate epsilons.

Implementations on Foreign Types

Implementors