1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-09-07 04:47:56 +00:00

embeddings:: fixed product embedding

This commit is contained in:
Zeno Rogue
2023-02-04 12:29:55 +01:00
parent caf5b5dc8e
commit 3183e10168
2 changed files with 3 additions and 3 deletions

View File

@@ -484,7 +484,7 @@ struct emb_same_in_same : emb_actual {
struct emb_product_embedding : emb_actual {
virtual bool is_product_embedding() { return true; }
transmatrix intermediate_to_actual_translation(hyperpoint i) { return rgpushxto0(i); }
transmatrix intermediate_to_actual_translation(hyperpoint i) { return rgpushxto0(logical_to_actual(i)); }
hyperpoint actual_to_intermediate(hyperpoint a) { return a; }
hyperpoint flatten(hyperpoint h) { h /= exp(zlevel(h)); return h; }
hyperpoint orthogonal_move(const hyperpoint& h, ld z) { return h * exp(z); }