From 5e2ba55e4642f39897b358bebe655b15aa045100 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Thu, 16 Jun 2022 23:13:38 +0200 Subject: [PATCH] CLI command -rotate-up --- commandline.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/commandline.cpp b/commandline.cpp index 7f26e645..8b49223c 100644 --- a/commandline.cpp +++ b/commandline.cpp @@ -256,6 +256,11 @@ int arg::readCommon() { shift(); ld b = argf(); View = View * spin(M_PI * 2 * a / b); } + else if(argis("-rotate-up")) { + start_game(); + shiftmatrix S = ggmatrix(cwt.at->master->move(0)->c7); + View = spin(90*degree) * spintox(S.T*C0) * View; + } else if(argis("-rotate3")) { PHASE(3); start_game(); shift(); ld a = argf();