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:
Zeno Rogue committed 2022-11-13 16:22:55 +01:00
1 parent 563b9c1f74
commit 06523e063e
100 files changed
+750 -757

No files matched your search

+1 -1
View File
@@ -460,7 +460,7 @@ bool step(int delta) {
ld dist = cgi.hcrossf / 2;
ld dists[8];
for(int i=0; i<S7; i++) {
dists[i] = hdist(s.p, xspinpush0(cgi.hexshift - i * 2 * M_PI / S7, -cgi.hcrossf));
dists[i] = hdist(s.p, xspinpush0(cgi.hexshift - i * TAU / S7, -cgi.hcrossf));
if(dists[i] < dist)
d = i, dist = dists[i];
}