mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-09-20 18:31:59 +00:00
used cyclefix and raddif in more places; (c)spin90, (c)spin180 and spin180 functions; rephrased M_PI in terms of TAU and x._deg when applicable
This commit is contained in:
@@ -52,7 +52,7 @@ shiftmatrix labelpos(shiftpoint h1, shiftpoint h2) {
|
||||
shiftmatrix T = rgpushxto0(h);
|
||||
hyperpoint hx = inverse_shift(T, h2);
|
||||
ld alpha = atan2(-hx[1], hx[0]);
|
||||
return T * xspinpush(alpha + M_PI/2, label_dist);
|
||||
return T * xspinpush(alpha + 90._deg, label_dist);
|
||||
}
|
||||
|
||||
ld widthfactor = 5;
|
||||
|
||||
Reference in New Issue
Block a user