mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-11-26 08:07:10 +00:00
kz added for shiftmatrix and shiftpoint
This commit is contained in:
1 parent
1fc48be781
commit
d32b0855a0
1 file changed
+10
+10
@@ -432,6 +432,16 @@ EX transmatrix kz(transmatrix h) {
|
||||
return h;
|
||||
}
|
||||
|
||||
EX shiftmatrix kz(shiftmatrix h) {
|
||||
h.T = kz(h.T);
|
||||
return h;
|
||||
}
|
||||
|
||||
EX shiftpoint kz(shiftpoint h) {
|
||||
h.h = kz(h.h);
|
||||
return h;
|
||||
}
|
||||
|
||||
#if HDR
|
||||
template<class T> vector<T> kz(vector<T> v) {
|
||||
for(auto& el: v) el = kz(el);
|
||||
|
||||
Reference in new issue
Block a user