Function maxFromCorners

Returns a rectangle based on provided four corners.

To create a rectangle that contains an arbitary set of points, use Geometry.Points.bbox.

Does some sanity checking such as:

  • x will be smallest of topLeft/bottomLeft
  • y will be smallest of topRight/topLeft
  • width will be largest between top/bottom left and right
  • height will be largest between left and right top/bottom