mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-10-28 12:27:40 +00:00
new hypot functions in goldberg
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user