@@ -9,6 +9,7 @@ use std::ops::{Neg, Range};
9
9
use cgmath:: BaseFloat ;
10
10
use cgmath:: prelude:: * ;
11
11
use cgmath:: num_traits:: NumCast ;
12
+ use cgmath:: UlpsEq ;
12
13
13
14
use self :: simplex:: { Simplex , SimplexProcessor2 , SimplexProcessor3 } ;
14
15
use crate :: { CollisionStrategy , Contact } ;
@@ -109,7 +110,7 @@ where
109
110
PL : Primitive < Point = P > ,
110
111
PR : Primitive < Point = P > ,
111
112
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 ,
113
114
TL : Transform < P > ,
114
115
TR : Transform < P > ,
115
116
{
@@ -277,7 +278,7 @@ where
277
278
PL : Primitive < Point = P > ,
278
279
PR : Primitive < Point = P > ,
279
280
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 ,
281
282
TL : Transform < P > ,
282
283
TR : Transform < P > ,
283
284
{
@@ -365,7 +366,7 @@ where
365
366
) -> Option < Contact < P > >
366
367
where
367
368
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 ,
369
370
PL : Primitive < Point = P > ,
370
371
PR : Primitive < Point = P > ,
371
372
TL : Transform < P > ,
@@ -415,7 +416,7 @@ where
415
416
) -> Option < Contact < P > >
416
417
where
417
418
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 ,
419
420
PL : Primitive < Point = P > ,
420
421
PR : Primitive < Point = P > ,
421
422
TL : Transform < P > ,
@@ -479,7 +480,7 @@ where
479
480
) -> Option < S >
480
481
where
481
482
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 ,
483
484
PL : Primitive < Point = P > ,
484
485
PR : Primitive < Point = P > ,
485
486
TL : Transform < P > ,
0 commit comments