BOXTOPOLYGON Convert a bounding box to a square polygon.

   poly = boxToPolygon(box)
   Utility function that convert box data in [XMIN XMAX YMIN YMAX] format
   to polygon data corresponding to the box boundary. The resulting POLY
   is a 4-by-2 array.


   Example
     box = [ 10 50 20 40];
     poly = boxToPolygon(box)
     poly = 
         10    20
         50    20
         50    40
         10    40

   See also
     boxes2d, polygons2d, boxToRect

Package: matgeom