1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-07-04 17:32:43 +00:00

3D:: elliptic space

This commit is contained in:
?
2019-02-25 18:13:09 +01:00
committed by Zeno Rogue
parent fb71d4fd15
commit fe174d8873
9 changed files with 64 additions and 24 deletions
+4 -4
View File
@@ -8,15 +8,15 @@ namespace hr {
transmatrix &ggmatrix(cell *c);
void fixelliptic(transmatrix& at) {
if(elliptic && at[2][2] < 0) {
for(int i=0; i<3; i++) for(int j=0; j<3; j++)
if(elliptic && at[DIM][DIM] < 0) {
for(int i=0; i<MDIM; i++) for(int j=0; j<MDIM; j++)
at[i][j] = -at[i][j];
}
}
void fixelliptic(hyperpoint& h) {
if(elliptic && h[2] < 0)
for(int i=0; i<3; i++) h[i] = -h[i];
if(elliptic && h[DIM] < 0)
for(int i=0; i<MDIM; i++) h[i] = -h[i];
}
transmatrix master_relative(cell *c, bool get_inverse) {