mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-10-24 02:17:40 +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:
@@ -23,7 +23,7 @@ bool draw_horo63(cell *c, const shiftmatrix& V) {
|
||||
array<hyperpoint, 6> c;
|
||||
hyperpoint ctr;
|
||||
for(int i=0; i<6; i++) {
|
||||
hyperpoint h = spin(60*degree*i) * point31(1,0,0);
|
||||
hyperpoint h = spin(TAU*i/6) * point31(1,0,0);
|
||||
h[0] += x;
|
||||
h[0] += y/2.;
|
||||
h[1] += sqrt(3)/2. * y;
|
||||
|
||||
Reference in New Issue
Block a user