AutoMovie API
    Preparing search index...
    • 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.

      • direction: number

        0 +u, 1 -u, 2 +v, 3 -v.

      • start: number

        The loop index to climb from.

      • tolerance: number = 0.5

        The persistence, millimetres (0.5 by default).

      Returns number

      The index of the hill's highest point.