def METHOD_NAME(self):
    pad = 0
    if self.opts['pxMode']:
        br = self.boundingRect()
        pad += hypot(br.width(), br.height())
    pen = self.pen()
    if pen.isCosmetic():
        pad += max(1, pen.width()) * 0.7072
    return pad