diff --git a/src/algorithm/minkowski/gjk/mod.rs b/src/algorithm/minkowski/gjk/mod.rs index 3891e26..5069efc 100644 --- a/src/algorithm/minkowski/gjk/mod.rs +++ b/src/algorithm/minkowski/gjk/mod.rs @@ -9,6 +9,7 @@ use std::ops::{Neg, Range}; use cgmath::BaseFloat; use cgmath::prelude::*; use cgmath::num_traits::NumCast; +use cgmath::UlpsEq; use self::simplex::{Simplex, SimplexProcessor2, SimplexProcessor3}; use crate::{CollisionStrategy, Contact}; @@ -109,7 +110,7 @@ where PL: Primitive, PR: Primitive, SP: SimplexProcessor, - P::Diff: Neg + InnerSpace + Zero + Array, + P::Diff: Neg + InnerSpace + Zero + Array + UlpsEq, TL: Transform

, TR: Transform

, { @@ -277,7 +278,7 @@ where PL: Primitive, PR: Primitive, SP: SimplexProcessor, - P::Diff: Neg + InnerSpace + Zero + Array, + P::Diff: Neg + InnerSpace + Zero + Array + UlpsEq, TL: Transform

, TR: Transform

, { @@ -365,7 +366,7 @@ where ) -> Option> where P: EuclideanSpace, - P::Diff: Neg + InnerSpace + Zero + Array, + P::Diff: Neg + InnerSpace + Zero + Array + UlpsEq, PL: Primitive, PR: Primitive, TL: Transform

, @@ -415,7 +416,7 @@ where ) -> Option> where P: EuclideanSpace, - P::Diff: Neg + InnerSpace + Zero + Array, + P::Diff: Neg + InnerSpace + Zero + Array + UlpsEq, PL: Primitive, PR: Primitive, TL: Transform

, @@ -479,7 +480,7 @@ where ) -> Option where P: EuclideanSpace, - P::Diff: Neg + InnerSpace + Zero + Array, + P::Diff: Neg + InnerSpace + Zero + Array + UlpsEq, PL: Primitive, PR: Primitive, TL: Transform

,