cmirror function

This commit is contained in:
Zeno Rogue 2021-07-07 18:21:17 +02:00
parent 4b3f72cc56
commit 2dfec288da
1 changed files with 6 additions and 0 deletions

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); }