fix runtime error with single precision (float), cont.

This commit is contained in:
Laurent Rineau 2023-04-24 14:49:42 +02:00
parent af5468c3a8
commit 42297b06a4
1 changed files with 2 additions and 2 deletions

View File

@ -635,7 +635,7 @@ auto unit = [](CGAL::Vector_2<R> v) { return v / CGAL::approximate_sqrt(v*v); };
comp2(trans*refl);
p1 = p.transform(trans);
p1 = p1.transform(refl);
assert(p1 == CGAL::Point_2<R>(1,-2));
assert(p1 == CGAL::Point_2<R>(1,-2) || nonexact);
assert(p1 == p.transform(comp1) || nonexact);
p1 = p.transform(refl);
p1 = p1.transform(trans);
@ -668,7 +668,7 @@ auto unit = [](CGAL::Vector_2<R> v) { return v / CGAL::approximate_sqrt(v*v); };
comp2 = refl2*refl;
p1 = p.transform(refl2);
p1 = p1.transform(refl);
assert(p1 == p.transform(comp1));
assert(p1 == p.transform(comp1) || nonexact);
p1 = p.transform(refl);
p1 = p1.transform(refl2);
assert(p1 == p.transform(comp2) || nonexact);