convenience functions zforward_dir and zpush0

This commit is contained in:
Zeno Rogue committed 2019-09-12 22:50:15 +02:00
1 parent afa6d722dd
commit 201098efe9
4 files changed
+5 -3

No files matched your search

+1
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; }