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
+1 -1
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);
}