kz added for shiftmatrix and shiftpoint

This commit is contained in:
Zeno Rogue 2023-01-06 00:24:58 +01:00
parent 1fc48be781
commit d32b0855a0
1 changed files with 10 additions and 0 deletions

View File

@ -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);