1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-12-16 02:58:05 +00:00

arb:: initial commit for affine

This commit is contained in:
Zeno Rogue
2020-05-15 11:38:20 +02:00
parent e644ebf1ea
commit 81350f4e51
3 changed files with 57 additions and 4 deletions

View File

@@ -744,6 +744,7 @@ EX transmatrix rgpushxto0(const hyperpoint& H) {
EX void fixmatrix(transmatrix& T) {
if(nonisotropic) ; // T may be inverse... do not do that
else if(cgflags & qAFFINE) ; // affine
else if(prod) {
auto z = zlevel(tC0(T));
T = mscale(T, -z);