Trait cgmath::ApproxEq
[−]
[src]
pub trait ApproxEq: Sized { type Epsilon: NumCast + Float; fn approx_eq_eps(&self, other: &Self, epsilon: &Self::Epsilon) -> bool; fn approx_epsilon() -> Self::Epsilon { ... } fn approx_eq(&self, other: &Self) -> bool { ... } }
Associated Types
Required Methods
fn approx_eq_eps(&self, other: &Self, epsilon: &Self::Epsilon) -> bool
Provided Methods
fn approx_epsilon() -> Self::Epsilon
fn approx_eq(&self, other: &Self) -> bool
Implementors
impl ApproxEq for f32
impl ApproxEq for f64
impl<S: BaseFloat> ApproxEq for Matrix2<S>
impl<S: BaseFloat> ApproxEq for Matrix3<S>
impl<S: BaseFloat> ApproxEq for Matrix4<S>
impl<S: BaseFloat> ApproxEq for Quaternion<S>
impl<S: BaseFloat> ApproxEq for Vector1<S>
impl<S: BaseFloat> ApproxEq for Vector2<S>
impl<S: BaseFloat> ApproxEq for Vector3<S>
impl<S: BaseFloat> ApproxEq for Vector4<S>
impl<S: BaseFloat> ApproxEq for Rad<S>
impl<S: BaseFloat> ApproxEq for Deg<S>
impl<A: Angle> ApproxEq for Euler<A>
impl<S: BaseFloat> ApproxEq for Point1<S>
impl<S: BaseFloat> ApproxEq for Point2<S>
impl<S: BaseFloat> ApproxEq for Point3<S>
impl<S: BaseFloat> ApproxEq for Basis2<S>
impl<S: BaseFloat> ApproxEq for Basis3<S>
impl<S: VectorSpace, R, E: BaseFloat> ApproxEq for Decomposed<S, R> where S: ApproxEq<Epsilon=E>, S::Scalar: ApproxEq<Epsilon=E>, R: ApproxEq<Epsilon=E>