Fix incorrect tolerance applied to CollideArcToPolygonApproximation qa test
This commit is contained in:
parent
d47bd3a04d
commit
3f60765016
|
@ -904,9 +904,9 @@ BOOST_AUTO_TEST_CASE( CollideArcToPolygonApproximation )
|
|||
int actual = 0;
|
||||
VECTOR2I location;
|
||||
|
||||
int tol = SHAPE_ARC::MIN_PRECISION_IU;
|
||||
int clearanceReduced = clearance - polygonApproximationError;
|
||||
|
||||
BOOST_CHECK_EQUAL( zoneFill.Collide( &arc, clearance - tol, &actual, &location ), false );
|
||||
BOOST_CHECK_EQUAL( zoneFill.Collide( &arc, clearanceReduced, &actual, &location ), false );
|
||||
|
||||
BOOST_CHECK_EQUAL( zoneFill.Collide( &arc, clearance * 2, &actual, &location ), true );
|
||||
|
||||
|
|
Loading…
Reference in New Issue