1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-09-12 07:16:01 +00:00

raycaster:: should now work in plane embedded as Solv

This commit is contained in:
Zeno Rogue
2023-05-15 02:28:56 +02:00
parent a9d76c861c
commit a70e799081
2 changed files with 36 additions and 8 deletions

View File

@@ -464,8 +464,13 @@ EX transmatrix to_other_side(hyperpoint h1, hyperpoint h2) {
return T;
}
ld d = hdist(h1, h2);
if(sol && meuclid) {
/* works in 4x4... */
return gpushxto0(h1) * gpushxto0(h2);
}
ld d = hdist(h1, h2);
hyperpoint v;
if(euclid)
v = (h2 - h1) / d;