mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-02-02 12:19:18 +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;
|
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
|
#if HDR
|
||||||
template<class T> vector<T> kz(vector<T> v) {
|
template<class T> vector<T> kz(vector<T> v) {
|
||||||
for(auto& el: v) el = kz(el);
|
for(auto& el: v) el = kz(el);
|
||||||
|
Loading…
Reference in New Issue
Block a user