[][src]Trait euclid::approxeq::ApproxEq

pub trait ApproxEq<Eps> {
    fn approx_epsilon() -> Eps;
fn approx_eq_eps(&self, other: &Self, approx_epsilon: &Eps) -> bool; fn approx_eq(&self, other: &Self) -> bool { ... } }

Trait for testing approximate equality

Required methods

fn approx_epsilon() -> Eps

Default epsilon value

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

Returns true is this object is approximately equal to the other one, using a provided epsilon value.

Loading content...

Provided methods

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

Returns true is this object is approximately equal to the other one, using the approx_epsilon() epsilon value.

Loading content...

Implementations on Foreign Types

impl ApproxEq<f32> for f32[src]

impl ApproxEq<f64> for f64[src]

Loading content...

Implementors

impl<T, Src, Dst> ApproxEq<T> for Rotation3D<T, Src, Dst> where
    T: Copy + Neg<Output = T> + ApproxEq<T>, 
[src]

impl<T: ApproxEq<T>> ApproxEq<T> for Angle<T>[src]

impl<T: ApproxEq<T>, Src, Dst> ApproxEq<T> for Transform2D<T, Src, Dst>[src]

fn approx_eq_eps(&self, other: &Self, eps: &T) -> bool[src]

Returns true is this transform is approximately equal to the other one, using a provided epsilon value.

impl<T: ApproxEq<T>, Src, Dst> ApproxEq<T> for Transform3D<T, Src, Dst>[src]

impl<T: ApproxEq<T>, U> ApproxEq<Point2D<T, U>> for Point2D<T, U>[src]

impl<T: ApproxEq<T>, U> ApproxEq<Point3D<T, U>> for Point3D<T, U>[src]

impl<T: ApproxEq<T>, U> ApproxEq<Vector2D<T, U>> for Vector2D<T, U>[src]

impl<T: ApproxEq<T>, U> ApproxEq<Vector3D<T, U>> for Vector3D<T, U>[src]

impl<U, T: ApproxEq<T>> ApproxEq<T> for Length<T, U>[src]

Loading content...