3D:: elliptic space

This commit is contained in:
? authored and Zeno Rogue committed 2019-09-12 22:38:40 +02:00
1 parent fb71d4fd15
commit fe174d8873
9 files changed
+64 -24

No files matched your search

+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) {