Tiny assertion improvements

This commit is contained in:
Mael Rouxel-Labbé 2021-04-06 16:25:04 +02:00
parent 306fbaacb3
commit 7b1dfd4983
1 changed files with 2 additions and 2 deletions

View File

@ -77,7 +77,7 @@ squared_distance(const typename K::Segment_3& s1,
return res;
}
CGAL_assertion(d != 0);
CGAL_assertion(d < 0);
res.x = 0;
res.y = boost::algorithm::clamp<FT>(f/d, 0, 1); // (f - x*c) / d
@ -87,7 +87,7 @@ squared_distance(const typename K::Segment_3& s1,
}
else if(p2 == q2)
{
CGAL_assertion(a != 0);
CGAL_assertion(a > 0);
res.y = 0;
res.x = boost::algorithm::clamp<FT>(e/a, 0, 1); // (e + y*c) / a