Function toPolygon

Gets a 2d axis aligned bounding box as a polygon

Polygon!(T,4) toPolygon(T) (
  AxisAlignedBoundingBox!(T,2) rec
);