Calculates the minimum oriented bounding box using the rotating callipers algorithm in 2D. Credits go to Daniel Wollschlaeger. The function modified from <http://dwoll.de/rexrepos/posts/diagBounding.html>.
getMinBBox2D(xy, prec = 1e-08)
a matrix of xy values from which to calculate the minimum oriented bounding box.
numerical, rounding precision; default 1e-08, lose to .Machine$double.eps^0.5.
a list with numeric width & height of the bounding box, and the number of points used for the calculation.