Bounding Box
data class BoundingBox(var topLeftX: Float = 0.0f, var topLeftY: Float = 0.0f, var bottomRightX: Float = 0.0f, var bottomRightY: Float = 0.0f)
Bounding box helper class for handling bounding box operations
Parameters
top Left X
the top left x coordinate
top Left Y
the top left y coordinate
bottom Right X
the bottom right x coordinate
bottom Right Y
the bottom right y coordinate
Functions
Link copied to clipboard
Clone the bounding box
Link copied to clipboard
Set the bounding box to match other
Link copied to clipboard
Expand the bounding box up-to the other bounding box limits
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
Link copied to clipboard
Returns true if the bounding box intersects other
Link copied to clipboard
Union the bounding box with the given one