renamed towards_ideal to towards_inf

This commit is contained in:
Zeno Rogue 2022-04-23 00:52:58 +02:00
parent cb654ca990
commit 24eccca370
2 changed files with 5 additions and 5 deletions

View File

@ -911,10 +911,10 @@ EX hyperpoint get_midedge(ld len, const hyperpoint &l, const hyperpoint &r) {
return normalize(kleinize(l) + kleinize(r));
}
else if(len == INFINITE_RIGHT) {
return towards_ideal(r, l);
return towards_inf(r, l);
}
else if(len == INFINITE_LEFT) {
return towards_ideal(l, r);
return towards_inf(l, r);
}
else return mid(l, r);
}

View File

@ -1684,10 +1684,10 @@ EX hyperpoint circumscribe(hyperpoint a, hyperpoint b, hyperpoint c, hyperpoint
return h;
}
/** the point in distance dist from 'material' to 'ideal' */
EX hyperpoint towards_ideal(hyperpoint material, hyperpoint ideal, ld dist IS(1)) {
/** the point in distance dist from 'material' to 'dir' (usually an (ultra)ideal point) */
EX hyperpoint towards_inf(hyperpoint material, hyperpoint dir, ld dist IS(1)) {
transmatrix T = gpushxto0(material);
hyperpoint id = T * ideal;
hyperpoint id = T * dir;
return rgpushxto0(material) * rspintox(id) * xpush0(1);
}