1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-09-03 11:17:56 +00:00

scr_to_ori functions applied in shifted bands

This commit is contained in:
Zeno Rogue
2023-08-14 11:25:09 +02:00
parent b98ac1c487
commit d9d92bfd84
2 changed files with 8 additions and 6 deletions

View File

@@ -124,9 +124,11 @@ EX namespace models {
/** screen coordinates to orientation logical coordinates */
EX void ori_to_scr(hyperpoint& h) { if(!model_straight) h = pconf.mori().get() * h; }
EX void ori_to_scr(transmatrix& h) { if(!model_straight) h = pconf.mori().get() * h; }
/** orientation logical coordinates to screen coordinates */
EX void scr_to_ori(hyperpoint& h) { if(!model_straight) h = iso_inverse(pconf.mori().get()) * h; }
EX void scr_to_ori(transmatrix& h) { if(!model_straight) h = iso_inverse(pconf.mori().get()) * h; }
#if HDR
template<class A>