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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user