arb:: used closest_to_zero in get_midedge

This commit is contained in:
Zeno Rogue 2022-04-25 20:13:22 +02:00
parent 31a554f077
commit 234041d39b
1 changed files with 1 additions and 1 deletions

View File

@ -994,7 +994,7 @@ heptagon *build_child(heptspin p, pair<int, int> adj);
/** get the midedge of lr; it takes infinite vertices into account */
EX hyperpoint get_midedge(ld len, const hyperpoint &l, const hyperpoint &r) {
if(len == INFINITE_BOTH) {
return normalize(kleinize(l) + kleinize(r));
return normalize(closest_to_zero(l, r));
}
else if(len == INFINITE_RIGHT) {
return towards_inf(r, l);