Creates optimal rectangle area around points
minBB(points, buffer = 0, epsg = 25832)
a sf object, points you want to fly over
buffer distance between the points and the rectangle; defaults 0
reference system
SpatialPoints: Corners of the flight area
The code is based on a Rotating Caliper Algorithm and mostly copy and pasted (see reference)
http://dwoll.de/rexrepos/posts/diagBounding.html