@@ -9,6 +9,7 @@ use std::ops::{Neg, Range};
99use cgmath:: BaseFloat ;
1010use cgmath:: prelude:: * ;
1111use cgmath:: num_traits:: NumCast ;
12+ use cgmath:: UlpsEq ;
1213
1314use self :: simplex:: { Simplex , SimplexProcessor2 , SimplexProcessor3 } ;
1415use crate :: { CollisionStrategy , Contact } ;
@@ -109,7 +110,7 @@ where
109110 PL : Primitive < Point = P > ,
110111 PR : Primitive < Point = P > ,
111112 SP : SimplexProcessor < Point = P > ,
112- P :: Diff : Neg < Output = P :: Diff > + InnerSpace + Zero + Array < Element = S > ,
113+ P :: Diff : Neg < Output = P :: Diff > + InnerSpace + Zero + Array < Element = S > + UlpsEq ,
113114 TL : Transform < P > ,
114115 TR : Transform < P > ,
115116 {
@@ -277,7 +278,7 @@ where
277278 PL : Primitive < Point = P > ,
278279 PR : Primitive < Point = P > ,
279280 SP : SimplexProcessor < Point = P > ,
280- P :: Diff : Neg < Output = P :: Diff > + InnerSpace + Zero + Array < Element = S > ,
281+ P :: Diff : Neg < Output = P :: Diff > + InnerSpace + Zero + Array < Element = S > + UlpsEq ,
281282 TL : Transform < P > ,
282283 TR : Transform < P > ,
283284 {
@@ -365,7 +366,7 @@ where
365366 ) -> Option < Contact < P > >
366367 where
367368 P : EuclideanSpace < Scalar = S > ,
368- P :: Diff : Neg < Output = P :: Diff > + InnerSpace + Zero + Array < Element = S > ,
369+ P :: Diff : Neg < Output = P :: Diff > + InnerSpace + Zero + Array < Element = S > + UlpsEq ,
369370 PL : Primitive < Point = P > ,
370371 PR : Primitive < Point = P > ,
371372 TL : Transform < P > ,
@@ -415,7 +416,7 @@ where
415416 ) -> Option < Contact < P > >
416417 where
417418 P : EuclideanSpace < Scalar = S > ,
418- P :: Diff : Neg < Output = P :: Diff > + InnerSpace + Zero + Array < Element = S > ,
419+ P :: Diff : Neg < Output = P :: Diff > + InnerSpace + Zero + Array < Element = S > + UlpsEq ,
419420 PL : Primitive < Point = P > ,
420421 PR : Primitive < Point = P > ,
421422 TL : Transform < P > ,
@@ -479,7 +480,7 @@ where
479480 ) -> Option < S >
480481 where
481482 P : EuclideanSpace < Scalar = S > ,
482- P :: Diff : Neg < Output = P :: Diff > + InnerSpace + Zero + Array < Element = S > ,
483+ P :: Diff : Neg < Output = P :: Diff > + InnerSpace + Zero + Array < Element = S > + UlpsEq ,
483484 PL : Primitive < Point = P > ,
484485 PR : Primitive < Point = P > ,
485486 TL : Transform < P > ,
0 commit comments