isIntersecting

fun isIntersecting(topLeftX: Float, topLeftY: Float, bottomRightX: Float, bottomRightY: Float): Boolean

Returns true if the bounding box intersects with the given parameters

Return

true if the bounding box intersects with the given parameters

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


Returns true if the bounding box intersects other

Return

true if the bounding box intersects other

See also