fixed orthogonal_move for euclidean same_in_same

This commit is contained in:
Zeno Rogue 2023-02-18 18:32:37 +01:00
parent 573304faab
commit 5764e46bbe
1 changed files with 1 additions and 0 deletions

View File

@ -494,6 +494,7 @@ struct emb_same_in_same : emb_actual {
transmatrix intermediate_to_actual_translation(hyperpoint i) override { return rgpushxto0(logical_to_actual(i)); }
hyperpoint actual_to_intermediate(hyperpoint a) override { return actual_to_logical(a); }
hyperpoint orthogonal_move(const hyperpoint& h, ld z) override {
if(euclid) { hyperpoint h1 = h; h1[2] += z; return h1; }
ld u = 1;
if(h[2]) z += asin_auto(h[2]), u /= cos_auto(asin_auto(h[2]));
u *= cos_auto(z);