commandline option to rotate

This commit is contained in:
Zeno Rogue 2018-09-05 15:17:24 +02:00
parent 52d188ac5e
commit a4e388019a
1 changed files with 6 additions and 0 deletions

View File

@ -129,6 +129,12 @@ int arg::readCommon() {
else if(argis("--draw")) {
PHASE(3); drawscreen();
}
else if(argis("--rotate")) {
PHASE(3);
shift(); ld a = argf();
shift(); ld b = argf();
View = View * spin(M_PI * 2 * a / b);
}
else if(argis("--exit")) {
PHASE(3); printf("Success.\n");
exit(0);