1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-22 09:27:40 +00:00

sol:: solmul

This commit is contained in:
Zeno Rogue
2019-07-25 12:14:18 +02:00
parent 2c3341bf67
commit 816320da94
4 changed files with 14 additions and 8 deletions

View File

@@ -791,4 +791,9 @@ bool asign(ld y1, ld y2) { return signum(y1) != signum(y2); }
ld xcross(ld x1, ld y1, ld x2, ld y2) { return x1 + (x2 - x1) * y1 / (y1 - y2); }
transmatrix solmul(transmatrix T, transmatrix V) {
if(sol) return V * eupush(inverse(V) * T * V * C0);
else return T * V;
}
}