new hypot functions in goldberg

This commit is contained in:
?
2019-09-12 22:38:42 +02:00
committed by Zeno Rogue
parent 41c3bd9b58
commit a0bd6bf4b5
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -565,7 +565,7 @@ namespace hr { namespace gp {
else
area = x * x + y * y;
next = point3(x+y/2., -y * sqrt(3) / 2, 0);
ld scale = 1 / hypot2(next);
ld scale = 1 / hypot_d(2, next);
crossf *= scale;
hepvdist *= scale;
hexhexdist *= scale;