POLYGONBOUNDS Compute the bounding box of a polygon.

   BOX = polygonBounds(POLY);
   Returns the bounding box of the polygon. 
   BOX has the format: [XMIN XMAX YMIN YMAX].

   Input polygon POLY is as a N-by-2 array containing coordinates of each
   vertex. 
   Multiple polygons can be specified either by inserting NaN rows between
   vertex coordinates, or by using a cell array, each cell containing the
   vertex coordinates of a polygon loop. 

   See also
   polygons2d, boxes2d, boundingBox

Package: matgeom