1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-19 15:20:27 +00:00

arg:: rotation in 3D

This commit is contained in:
Zeno Rogue 2019-03-21 19:12:13 +01:00
parent c505bd55a8
commit fed102a7e1

View File

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