1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-24 17:10:36 +00:00

nisot:: functions get product functions

This commit is contained in:
Zeno Rogue 2019-08-19 12:07:03 +02:00
parent 988adb8259
commit 42b2aa7596

View File

@ -754,6 +754,7 @@ EX namespace nisot {
EX hyperpoint inverse_exp(const hyperpoint h, iePrecision p, bool just_direction IS(true)) {
if(sol) return solv::get_inverse_exp(h, p == iLazy, just_direction);
if(nil) return nilv::get_inverse_exp(h, p == iLazy ? 5 : 20);
if(prod) return product::inverse_exp(h);
return point3(h[0], h[1], h[2]);
}
@ -786,6 +787,7 @@ EX namespace nisot {
EX hyperpoint get_exp(hyperpoint v, int steps) {
if(sol) return direct_exp(v, steps);
if(nil) return nilv::formula_exp(v);
if(prod) return product::direct_exp(v);
return v;
}