mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-30 15:39:54 +00:00
cmirror function
This commit is contained in:
parent
4b3f72cc56
commit
2dfec288da
@ -639,6 +639,12 @@ EX transmatrix cpush(int cid, ld alpha) {
|
|||||||
return T;
|
return T;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
EX transmatrix cmirror(int cid) {
|
||||||
|
transmatrix T = Id;
|
||||||
|
T[cid][cid] = -1;
|
||||||
|
return T;
|
||||||
|
}
|
||||||
|
|
||||||
// push alpha units to the right
|
// push alpha units to the right
|
||||||
EX transmatrix xpush(ld alpha) { return cpush(0, alpha); }
|
EX transmatrix xpush(ld alpha) { return cpush(0, alpha); }
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user