New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Step branch #1

Merged
merged 261 commits into from Jul 21, 2016
Commits
Jump to file or symbol
Failed to load files and symbols.
+3 −14
Diff settings

Always

Just for now

Viewing a subset of changes. View all

Merge the switch

  • Loading branch information...
pvdz committed Feb 19, 2016
commit 053933f8e5bdbfca753b265e7f4b05c754dab7a4
View
@@ -253,20 +253,9 @@ <h1>
if (p.u) {
var b = p.u % atomloop;
switch (p.u % 3) {
case 0:
targetx = atomx + COS(b) * tp * fitty;
targety = atomy + SIN(b) * hunned;
break;
case 1:
targetx = atomx + COS(b) * hunned;
targety = atomy + SIN(b) * tp * fitty;
break;
case 2:
targetx = atomx + COS(b) * tp * hunned;
targety = atomy + SIN(b) * tp * hunned;
break;
}
var k = p.u%3;
targetx = atomx + COS(b) * (k==1?hunned:k==0?tp * fitty:tp * hunned);
targety = atomy + SIN(b) * (k==0?hunned:k==1?tp * fitty:tp * hunned);
} else if (p.q) {
targetx -= (Z * 15) % M;
targety += st200;
ProTip! Use n and p to navigate between commits in a pull request.