mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-09-06 04:17:58 +00:00
cmirror function
This commit is contained in:
@@ -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); }
|
||||
|
||||
|
Reference in New Issue
Block a user