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