mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-24 01:00:25 +00:00
product:: fixmatrix
This commit is contained in:
parent
b0f954f422
commit
17f7cef678
@ -663,7 +663,12 @@ EX transmatrix rgpushxto0(const hyperpoint& H) {
|
||||
|
||||
EX void fixmatrix(transmatrix& T) {
|
||||
if(nonisotropic) ; // T may be inverse... do not do that
|
||||
else if(prod) ;
|
||||
else if(prod) {
|
||||
auto z = zlevel(tC0(T));
|
||||
T = mscale(T, -z);
|
||||
PIU(fixmatrix(T));
|
||||
T = mscale(T, +z);
|
||||
}
|
||||
else if(euclid) {
|
||||
for(int x=0; x<GDIM; x++) for(int y=0; y<=x; y++) {
|
||||
ld dp = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user