1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-30 15:39:54 +00:00

cmirror function

This commit is contained in:
Zeno Rogue 2021-07-07 18:21:17 +02:00
parent 4b3f72cc56
commit 2dfec288da

View File

@ -639,6 +639,12 @@ EX transmatrix cpush(int cid, ld alpha) {
return T;
}
EX transmatrix cmirror(int cid) {
transmatrix T = Id;
T[cid][cid] = -1;
return T;
}
// push alpha units to the right
EX transmatrix xpush(ld alpha) { return cpush(0, alpha); }