The hill of the support along a direction that holds a loop point: walk
the loop both ways from start while the support stays within the
tolerance of the best reached on that side, and return the higher of the
two bests. A dip deeper than the tolerance ends a side, so the walk stays
on the hill it began on (dips within the tolerance do not separate
hills, as in the features' persistence).
Parameters
loop: readonly (readonly[number,number])[]
Closed loop, chart millimetres, last point not repeated.
The hill of the support along a direction that holds a loop point: walk the loop both ways from
startwhile the support stays within the tolerance of the best reached on that side, and return the higher of the two bests. A dip deeper than the tolerance ends a side, so the walk stays on the hill it began on (dips within the tolerance do not separate hills, as in the features' persistence).