fixed eyes on sphere

This commit is contained in:
Zeno Rogue committed 2022-12-09 02:33:15 +01:00
1 parent 9b3324b7eb
commit 1bb8056e0d
2 files changed
+7 -1

No files matched your search

+6
View File
@@ -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;