intersect
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
top Left X
the top left x coordinate to intersect with
top Left Y
the top left y coordinate to intersect with
bottom Right X
the bottom right x coordinate to intersect with
bottom Right Y
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