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
fn approx_epsilon(unused_mut: Option<Self>) -> 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(unused_mut: Option<Self>) -> 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
Implementors
impl<N: ApproxEq<N>> ApproxEq<N> for DMatrix<N>
impl<N: ApproxEq<N>> ApproxEq<N> for DMatrix1<N>
impl<N: ApproxEq<N>> ApproxEq<N> for DMatrix2<N>
impl<N: ApproxEq<N>> ApproxEq<N> for DMatrix3<N>
impl<N: ApproxEq<N>> ApproxEq<N> for DMatrix4<N>
impl<N: ApproxEq<N>> ApproxEq<N> for DMatrix5<N>
impl<N: ApproxEq<N>> ApproxEq<N> for DMatrix6<N>
impl<N: ApproxEq<N>> ApproxEq<N> for DVector<N>
impl<N: ApproxEq<N>> ApproxEq<N> for DVector1<N>
impl<N: ApproxEq<N>> ApproxEq<N> for DVector2<N>
impl<N: ApproxEq<N>> ApproxEq<N> for DVector3<N>
impl<N: ApproxEq<N>> ApproxEq<N> for DVector4<N>
impl<N: ApproxEq<N>> ApproxEq<N> for DVector5<N>
impl<N: ApproxEq<N>> ApproxEq<N> for DVector6<N>
impl<N: ApproxEq<N>> ApproxEq<N> for Vector1<N>
impl<N: ApproxEq<N>> ApproxEq<N> for Vector2<N>
impl<N: ApproxEq<N>> ApproxEq<N> for Vector3<N>
impl<N: ApproxEq<N>> ApproxEq<N> for Vector4<N>
impl<N: ApproxEq<N>> ApproxEq<N> for Vector5<N>
impl<N: ApproxEq<N>> ApproxEq<N> for Vector6<N>
impl<N: ApproxEq<N>> ApproxEq<N> for Point1<N>
impl<N: ApproxEq<N>> ApproxEq<N> for Point2<N>
impl<N: ApproxEq<N>> ApproxEq<N> for Point3<N>
impl<N: ApproxEq<N>> ApproxEq<N> for Point4<N>
impl<N: ApproxEq<N>> ApproxEq<N> for Point5<N>
impl<N: ApproxEq<N>> ApproxEq<N> for Point6<N>
impl<N: ApproxEq<N>> ApproxEq<N> for UnitQuaternion<N>
impl<N: ApproxEq<N>> ApproxEq<N> for Quaternion<N>
impl<N: ApproxEq<N>> ApproxEq<N> for Matrix1<N>
impl<N: ApproxEq<N>> ApproxEq<N> for Matrix2<N>
impl<N: ApproxEq<N>> ApproxEq<N> for Matrix3<N>
impl<N: ApproxEq<N>> ApproxEq<N> for Matrix4<N>
impl<N: ApproxEq<N>> ApproxEq<N> for Matrix5<N>
impl<N: ApproxEq<N>> ApproxEq<N> for Matrix6<N>
impl<N: ApproxEq<N>> ApproxEq<N> for Rotation2<N>
impl<N: ApproxEq<N>> ApproxEq<N> for Rotation3<N>
impl<N: ApproxEq<N>> ApproxEq<N> for Isometry2<N>
impl<N: ApproxEq<N>> ApproxEq<N> for Isometry3<N>
impl<N: ApproxEq<N>> ApproxEq<N> for Similarity2<N>
impl<N: ApproxEq<N>> ApproxEq<N> for Similarity3<N>
impl ApproxEq<f32> for f32
impl ApproxEq<f64> for f64
impl<'a, N, T: ApproxEq<N>> ApproxEq<N> for &'a T
impl<'a, N, T: ApproxEq<N>> ApproxEq<N> for &'a mut T