Trait nalgebra::ApproxEq [] [src]

pub trait ApproxEq<Eps>: Sized {
    fn approx_epsilon() -> Eps;
    fn approx_eq_eps(&self, other: &Self, epsilon: &Eps) -> bool;
    fn approx_ulps() -> 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