             let rects:[CGRect] = points.map {
                 return $0.frame
             }
-            println(rects)
             return CGRect.unionOfRects(rects)
         }
     }


import SwiftGraphics


extension CGPoint : Geometry {
    public var frame:CGRect { get { return CGRect(center:self, diameter:0) } }
}

        context.strokeSaltire(frame)
    }
}

extension RegularPolygon: Drawable {

    public var frame:CGRect {
        get {
            return self.circumcircle.frame
        }
    }

    public func drawInContext(context: CGContext) {
        let path = Path(vertices:points, closed:true)
        let mode = CGPathDrawingMode(strokeColor:context.strokeColor, fillColor:context.fillColor)
        CGContextAddPath(context, path.CGPath)
        CGContextDrawPath(context, mode)
    }
}

