mirror of https://github.com/CGAL/cgal
fix runtime error with single precision (float)
This commit is contained in:
parent
60b5642b7c
commit
af5468c3a8
|
|
@ -639,7 +639,7 @@ auto unit = [](CGAL::Vector_2<R> v) { return v / CGAL::approximate_sqrt(v*v); };
|
||||||
assert(p1 == p.transform(comp1) || nonexact);
|
assert(p1 == p.transform(comp1) || nonexact);
|
||||||
p1 = p.transform(refl);
|
p1 = p.transform(refl);
|
||||||
p1 = p1.transform(trans);
|
p1 = p1.transform(trans);
|
||||||
assert(p1 == p.transform(comp2));
|
assert(p1 == p.transform(comp2) || nonexact);
|
||||||
//with scaling
|
//with scaling
|
||||||
CGAL::Aff_transformation_2<R> scal(CGAL::SCALING, 2);
|
CGAL::Aff_transformation_2<R> scal(CGAL::SCALING, 2);
|
||||||
comp1 = refl*scal;
|
comp1 = refl*scal;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue