mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-22 23:17:04 +00:00
kz added for shiftmatrix and shiftpoint
This commit is contained in:
parent
1fc48be781
commit
d32b0855a0
10
hprint.cpp
10
hprint.cpp
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user