mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-20 15:40:26 +00:00
arb:: used closest_to_zero in get_midedge
This commit is contained in:
parent
31a554f077
commit
234041d39b
@ -994,7 +994,7 @@ heptagon *build_child(heptspin p, pair<int, int> adj);
|
|||||||
/** get the midedge of lr; it takes infinite vertices into account */
|
/** get the midedge of lr; it takes infinite vertices into account */
|
||||||
EX hyperpoint get_midedge(ld len, const hyperpoint &l, const hyperpoint &r) {
|
EX hyperpoint get_midedge(ld len, const hyperpoint &l, const hyperpoint &r) {
|
||||||
if(len == INFINITE_BOTH) {
|
if(len == INFINITE_BOTH) {
|
||||||
return normalize(kleinize(l) + kleinize(r));
|
return normalize(closest_to_zero(l, r));
|
||||||
}
|
}
|
||||||
else if(len == INFINITE_RIGHT) {
|
else if(len == INFINITE_RIGHT) {
|
||||||
return towards_inf(r, l);
|
return towards_inf(r, l);
|
||||||
|
Loading…
Reference in New Issue
Block a user