1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-11-17 22:25:12 +00:00

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

@@ -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);
}