Trait nalgebra::ApproxEq [] [src]

pub trait ApproxEq<Eps>: Sized {
    fn approx_epsilon(unused_mut: Option<Self>) -> Eps;
    fn approx_eq_eps(&self, other: &Self, epsilon: &Eps) -> bool;
    fn approx_ulps(unused_mut: Option<Self>) -> u32;
    fn approx_eq_ulps(&self, other: &Self, ulps: u32) -> bool;

    fn approx_eq(&self, other: &Self) -> bool { ... }
}

Trait for testing approximate equality

Required Methods

Default epsilon for approximation.

Tests approximate equality using a custom epsilon.

Default ULPs for approximation.

Tests approximate equality using units in the last place (ULPs)

Provided Methods

Tests approximate equality.

Implementors