mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-10-04 16:31:44 +00:00
rogueviz:: embeddings:: fixed the conversion to polar
This commit is contained in:
@@ -56,7 +56,7 @@ namespace embeddings {
|
|||||||
pe->coords.resize(N);
|
pe->coords.resize(N);
|
||||||
for(int i=0; i<N; i++) {
|
for(int i=0; i<N; i++) {
|
||||||
auto h = current->as_hyperpoint(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);
|
return enable_embedding(pe);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user