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

fn approx_epsilon() -> Eps

Default epsilon for approximation.

fn approx_eq_eps(&self, other: &Self, epsilon: &Eps) -> bool

Tests approximate equality using a custom epsilon.

fn approx_ulps() -> u32

Default ULPs for approximation.

fn approx_eq_ulps(&self, other: &Self, ulps: u32) -> bool

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

Provided Methods

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

Tests approximate equality.

Implementors