Skip to content

Commit dc2b48b

Browse files
authored
Tolerance for FT without sqrt (#9053)
Used at a non critical part used for discretization
2 parents b741ed9 + 7a08a00 commit dc2b48b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Apollonius_graph_2/include/CGAL/Parabola_segment_2.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ class Parabola_segment_2 : public Parabola_2< Gt >
6363
}
6464

6565
int compute_k(const FT tt, const FT STEP) const {
66-
return int(CGAL::to_double(CGAL::sqrt(tt / STEP)));
66+
return int(CGAL::to_double(CGAL::approximate_sqrt(tt / STEP)));
6767
}
6868

6969
// s0 and s1 define a desired drawing "range"

0 commit comments

Comments
 (0)