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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user