3D graphics in 2D (first commit)

This commit is contained in:
Zeno Rogue committed 2019-09-12 22:43:01 +02:00
1 parent ea768b634b
commit 1c4d86e0e9
27 files changed
+424 -269

No files matched your search

+3 -1
View File
@@ -93,7 +93,9 @@ void remission() {
}
hyperpoint move_destination_vec(int d) {
if(DIM == 2) return spin(-d * M_PI/4) * tC0(pushone());
if(GDIM == 2) return spin(-d * M_PI/4) * tC0(pushone());
else if(WDIM == 2 && pmodel == mdPerspective) return cspin(0, 2, d * M_PI/4) * tC0(pushone());
else if(WDIM == 2) return spin(-d * M_PI/4) * tC0(pushone());
else if(d&1) return cspin(0, 1, d > 4 ? M_PI/2 : -M_PI/2) * tC0(pushone());
else return cspin(0, 2, d * M_PI/4) * tC0(pushone());
}