diff --git a/complex2.cpp b/complex2.cpp index 625b418b..5e5c4bf7 100644 --- a/complex2.cpp +++ b/complex2.cpp @@ -1273,11 +1273,13 @@ EX namespace dice { dynamicval g(geometry, gSphere); hyperpoint de = direct_exp(log_shift); S = rgpushxto0(de); + #if MAXMDIM >= 4 if(GDIM == 3) { - for(int i=0; i<4; i++) swap(S[i][2], S[i][3]); - for(int i=0; i<4; i++) swap(S[2][i], S[3][i]); + for(int i=0; i 3 + h[3] = 0; + #endif return h; } if(oeuclid) { h[2] = 1-h[2]; return h; } ld z = asin_auto(h[2]); h = zpush(-z) * h; - h[2] = h[3]; h[3] = 0; + #if MAXMDIM > 3 + h[2] = h[3]; + h[3] = 0; + #endif dynamicval g(geometry, orig); return orthogonal_move(h, z); };