intersect

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

Intersect the bounding box with the given one

Return

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

Parameters

other

a bounding box to intersect with

clone

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


fun intersect(topLeftX: Float, topLeftY: Float, bottomRightX: Float, bottomRightY: Float, clone: Boolean = false): BoundingBox

Intersect the bounding box with the given parameters

Return

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

Parameters

topLeftX

the top left x coordinate to intersect with

topLeftY

the top left y coordinate to intersect with

bottomRightX

the bottom right x coordinate to intersect with

bottomRightY

the bottom right y coordinate to intersect with

clone

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