mirror of https://github.com/CGAL/cgal
fix runtime error with single precision (float), cont.
This commit is contained in:
parent
af5468c3a8
commit
42297b06a4
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue