1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-08-31 01:37:57 +00:00

Nil embedding

This commit is contained in:
Zeno Rogue
2022-12-13 19:04:43 +01:00
parent 63b17a605c
commit f61adc2865
11 changed files with 205 additions and 116 deletions

View File

@@ -85,6 +85,7 @@ EX movedir vectodir(hyperpoint P) {
transmatrix U = unshift(ggmatrix(cwt.at));
if(embedded_plane && geom3::same_in_same()) U = current_display->radar_transform * U;
if(geom3::euc_in_nil()) P[2] = -P[2]; /* no idea why */
P = direct_exp(lp_iapply(P));
hyperpoint H = sphereflip * tC0(U);