Function xyObjectMinMaxValues

  • Returns all min and max values of an array of points.

    Parameters

    • points: Point[]

      Array of points {x,y}.

    Returns { maxX: number; maxY: number; minX: number; minY: number }

    • Object with the 4 extrema.