BoundingBox

data class BoundingBox(val left: Float, val top: Float, val right: Float, val bottom: Float)

Represents a bounding box in 2D space.

Constructors

Link copied to clipboard
constructor(left: Float, top: Float, right: Float, bottom: Float)

Properties

Link copied to clipboard
val area: Float

The area of the bounding box.

Link copied to clipboard

The bottommost coordinate.

Link copied to clipboard

The height of the bounding box.

Link copied to clipboard
val left: Float

The leftmost coordinate.

Link copied to clipboard

The rightmost coordinate.

Link copied to clipboard
val top: Float

The topmost coordinate.

Link copied to clipboard

The width of the bounding box.