1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-26 01:50:36 +00:00

embeddings:: fixed map over itself in spherical product embedding

This commit is contained in:
Zeno Rogue 2023-02-02 19:26:51 +01:00
parent d305896c96
commit e4c775b986

View File

@ -591,7 +591,7 @@ struct emb_euc_in_product : emb_euclid_noniso {
ld bz = zlevel(a);
auto h1 = a / exp(bz);
ld by = asin_auto(h1[1]);
ld bx = atan_auto(h1[0] / h1[2]);
ld bx = atan2_auto(h1[0], h1[2]);
return hyperpoint(bx, by, bz, 1);
}
transmatrix get_lsti() override { return cspin90(2, 1); }