1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-05-13 09:52:06 +00:00

fixed vertical in embedded_plane in noniso

This commit is contained in:
Zeno Rogue
2022-12-15 18:15:26 +01:00
parent 3233ecbfde
commit 6b262104fd
2 changed files with 12 additions and 4 deletions
+5 -1
View File
@@ -1752,7 +1752,11 @@ EX hyperpoint xtangent(ld x) { return ctangent(0, x); }
EX hyperpoint ztangent(ld z) { return ctangent(2, z); }
/** tangent vector in logical direction Z */
EX hyperpoint lztangent(ld z) { return ctangent(2, z); }
EX hyperpoint lztangent(ld z) {
if(geom3::hyp_in_solnih()) return ctangent(0, z);
if(geom3::euc_in_nil()) return ctangent(1, z);
return ctangent(2, z);
}
/** change the length of the targent vector */
EX hyperpoint tangent_length(hyperpoint dir, ld length) {