Function xyObjectMaxYPoint

  • Finds the max y value and return a {x,y,index} point

    Parameters

    • points: Point[] = []

      Object that contains property x (an ordered increasing array) and y (an array)

    Returns Point

    max point