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:
parent
d305896c96
commit
e4c775b986
@ -591,7 +591,7 @@ struct emb_euc_in_product : emb_euclid_noniso {
|
|||||||
ld bz = zlevel(a);
|
ld bz = zlevel(a);
|
||||||
auto h1 = a / exp(bz);
|
auto h1 = a / exp(bz);
|
||||||
ld by = asin_auto(h1[1]);
|
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);
|
return hyperpoint(bx, by, bz, 1);
|
||||||
}
|
}
|
||||||
transmatrix get_lsti() override { return cspin90(2, 1); }
|
transmatrix get_lsti() override { return cspin90(2, 1); }
|
||||||
|
Loading…
Reference in New Issue
Block a user