1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-05-08 08:11:21 +00:00

rogueviz:: embeddings:: fixed the conversion to polar

This commit is contained in:
Zeno Rogue
2026-05-01 19:57:26 +02:00
parent e7e95e8d67
commit 0cbdf018af

View File

@@ -56,7 +56,7 @@ namespace embeddings {
pe->coords.resize(N);
for(int i=0; i<N; i++) {
auto h = current->as_hyperpoint(i);
pe->coords[i] = { hdist0(h), atan2(h) };
pe->coords[i] = { hdist0(h), -atan2(h) };
}
return enable_embedding(pe);
}