1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-01-13 06:22:39 +00:00

convenience functions zforward_dir and zpush0

This commit is contained in:
Zeno Rogue
2019-08-20 14:56:00 +02:00
parent afa6d722dd
commit 201098efe9
4 changed files with 5 additions and 3 deletions

View File

@@ -615,6 +615,7 @@ void geometry_information::animate_bird(hpcshape& orig, hpcshape_animated& anima
}
EX hyperpoint forward_dir(ld x) { return prod ? point3(x, 0, 0) : xpush0(x); }
EX hyperpoint zforward_dir(ld z) { return prod ? point3(0, 0, z) : zpush0(z); }
EX hyperpoint dir_to_point(hyperpoint h) { return prod ? product::direct_exp(h) : h; }