Returns all min and max values of an array of points.
array of points {x,y}.
object with the 4 extrema.
Returns all min and max values of an array of points.