1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-18 03:04:48 +00:00

fixed the matrix multiplication order in prepare_lta

This commit is contained in:
Zeno Rogue 2023-01-07 11:33:39 +01:00
parent d32b0855a0
commit dfb73bbdaa

View File

@ -605,7 +605,7 @@ void geometry_information::prepare_lta() {
lta = Id;
lta[0][0] *= geom3::euclid_embed_scale;
lta[1][1] *= geom3::euclid_embed_scale * geom3::euclid_embed_scale_y;
lta = cspin(0, 1, geom3::euclid_embed_rotate * degree) * lta * logical_to_actual_units;
lta = logical_to_actual_units * cspin(0, 1, geom3::euclid_embed_rotate * degree) * lta;
}
actual_to_logical = inverse(lta);
actual_to_logical_units = inverse(logical_to_actual_units);