mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-09-05 20:07:58 +00:00
new embedding: Euclidean cylinder
This commit is contained in:
@@ -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