expandUpTo

fun expandUpTo(other: BoundingBox, clone: Boolean = false): BoundingBox

Expand the bounding box up-to the other bounding box limits

Return

this or the new cloned modified bounding box (see clone)

Parameters

other

the bounding box to be expanded up to it

clone

if true, the return value is a new modified Bounding, else the operation is performed on this and this is returned


fun expandUpTo(minX: Float, minY: Float, maxX: Float, maxY: Float, clone: Boolean = false): BoundingBox

Expand the bounding box up-to the given parameters bounding box limits

Return

this or the new cloned modified bounding box (see clone)

Parameters

minX

the top left x coordinate

minY

the top left y coordinate

maxX

the bottom right x coordinate

maxY

the bottom right y coordinate

clone

if true, the return value is a new modified Bounding, else the operation is performed on this and this is returned