mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-11-26 00:07:10 +00:00
fixed eyes on sphere
This commit is contained in:
1 parent
9b3324b7eb
commit
1bb8056e0d
2 files changed
+7
-1
No files matched your search
@@ -1428,6 +1428,12 @@ EX hyperpoint scale_point(const hyperpoint& h, ld scale_factor) {
|
||||
return res;
|
||||
}
|
||||
|
||||
EX bool moved_center() {
|
||||
if(geom3::sph_in_euc()) return true;
|
||||
if(geom3::sph_in_hyp()) return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
/** Returns the intended center of the tile, relative to its local matrix. Usually C0 but may be different, e.g. when embedding a sphere in E3 or H3. */
|
||||
EX hyperpoint tile_center() {
|
||||
if(geom3::sph_in_euc()) return C02 + C03;
|
||||
|
||||
Reference in new issue
Block a user