mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-11-18 05:34:30 +00:00
new embedding: Euclidean cylinder
This commit is contained in:
1 parent
bab78c8179
commit
8744420504
7 files changed
+75
-7
No files matched your search
@@ -35,6 +35,7 @@ hyperpoint get_center(const vector<hyperpoint>& vh) {
|
||||
hyperpoint h = Hypc;
|
||||
for(auto h1: vh) h = h + h1;
|
||||
if(geom3::euc_in_product()) return h / isize(vh);
|
||||
if(geom3::euc_cylinder()) h /= isize(vh);
|
||||
return normalize_flat(h);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user