boundingBox

Calculates the bounding box of the given list of path nodes. A bounding box is a rectangle that encloses all the points in a path.

Preconditions:

  • All path nodes must be absolute.

  • There must be no reflective curve or quad nodes.

Return

The bounding box of the path or NoBoundingBox if the list is empty.

Throws

if the preconditions are not met.