Skip to content

Commit 246bc7f

Browse files
committed
remove tabs and add std::
1 parent b50cbad commit 246bc7f

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

Intersections_2/include/CGAL/Intersections_2/Segment_2_Segment_2.h

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -361,30 +361,30 @@ double s2s2_alpha(double x0, double y0,
361361
double x2, double y2,
362362
double x3, double y3)
363363
{
364-
double tmp;
365-
if (x1 <= -9.794158788366665e-11) {
366-
tmp = -(x1 / (x0 - x1));
367-
} else {
368-
double t_0 = (y1 - y3) / (y1 - y0);
369-
double tmp_1;
370-
if (x1 <= -1.7579125018815487e-296) {
371-
tmp_1 = t_0;
372-
} else if (x1 <= 1.7250761038378636e-206) {
373-
tmp_1 = x2 / ((fma(x2, y0, fma(y3, x0, (x1 * y2))) - fma(x2, y1, fma(y3, x1, (x0 * y2)))) / (y3 - y1));
374-
} else if (x1 <= 3.6888389969707494e-205) {
375-
tmp_1 = t_0;
376-
} else if (x1 <= 1.4339509931401463e-80) {
377-
tmp_1 = (fma(x1, y2, fma(y1, x3, (y3 * x2))) - fma(x2, y1, fma(x1, y3, (y2 * x3)))) / fma((x3 - x2), (y1 - y0), ((x0 - x1) * (y3 - y2)));
378-
} else if (x1 <= 1.72960576050945e+52) {
379-
tmp_1 = (y1 - y2) / (y1 - y0);
380-
} else if (x1 <= 2.145089573601479e+104) {
381-
tmp_1 = (x1 - x3) / (x1 - x0);
382-
} else {
383-
tmp_1 = (x1 - x2) / (x1 - x0);
384-
}
385-
tmp = tmp_1;
386-
}
387-
return tmp;
364+
double tmp;
365+
if (x1 <= -9.794158788366665e-11) {
366+
tmp = -(x1 / (x0 - x1));
367+
} else {
368+
double t_0 = (y1 - y3) / (y1 - y0);
369+
double tmp_1;
370+
if (x1 <= -1.7579125018815487e-296) {
371+
tmp_1 = t_0;
372+
} else if (x1 <= 1.7250761038378636e-206) {
373+
tmp_1 = x2 / ((std::fma(x2, y0, std::fma(y3, x0, (x1 * y2))) - std::fma(x2, y1, std::fma(y3, x1, (x0 * y2)))) / (y3 - y1));
374+
} else if (x1 <= 3.6888389969707494e-205) {
375+
tmp_1 = t_0;
376+
} else if (x1 <= 1.4339509931401463e-80) {
377+
tmp_1 = (std::fma(x1, y2, std::fma(y1, x3, (y3 * x2))) - std::fma(x2, y1, std::fma(x1, y3, (y2 * x3)))) / std::fma((x3 - x2), (y1 - y0), ((x0 - x1) * (y3 - y2)));
378+
} else if (x1 <= 1.72960576050945e+52) {
379+
tmp_1 = (y1 - y2) / (y1 - y0);
380+
} else if (x1 <= 2.145089573601479e+104) {
381+
tmp_1 = (x1 - x3) / (x1 - x0);
382+
} else {
383+
tmp_1 = (x1 - x2) / (x1 - x0);
384+
}
385+
tmp = tmp_1;
386+
}
387+
return tmp;
388388
}
389389

390390
template <class FT>

0 commit comments

Comments
 (0)