def get_extents(self, transform=None):
from transforms import Bbox<EOL>if transform is not None:<EOL><INDENT>transform = transform.frozen()<EOL><DEDENT>return Bbox(get_path_extents(self, transform))<EOL>
Returns the extents (*xmin*, *ymin*, *xmax*, *ymax*) of the
path.

Unlike computing the extents on the *vertices* alone, this
algorithm will take into account the curves and deal with
control points appropriately.