square

fun square(boundingBox: BoundingBox): BoundingBox

Takes a bounding box and calculates the minimum square bounding box that would contain the input.

Return

BoundingBox a square surrounding boundingBox