diff --git a/hyperpoint.cpp b/hyperpoint.cpp index 79d568f2..d7186fd8 100644 --- a/hyperpoint.cpp +++ b/hyperpoint.cpp @@ -863,7 +863,7 @@ EX transmatrix matrix3(ld a, ld b, ld c, ld d, ld e, ld f, ld g, ld h, ld i) { #if MAXMDIM==3 return transmatrix {{{a,b,c},{d,e,f},{g,h,i}}}; #else - if(GDIM == 2) + if(GDIM == 2 || MDIM == 3) return transmatrix {{{a,b,c,0},{d,e,f,0},{g,h,i,0},{0,0,0,1}}}; else return transmatrix {{{a,b,0,c},{d,e,0,f},{0,0,1,0},{g,h,0,i}}};