BoundingBox

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

Bounding box of an element of HUD.

Constructors

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

Functions

Link copied to clipboard
operator fun contains(point: <Error class: unknown class><Float>): Boolean

Returns true if given point is inside this bounding box.

Properties

Link copied to clipboard

Y coordinate of the bottom side of this bounding box.

Link copied to clipboard

Height of this bounding box.

Link copied to clipboard
val left: Float

X coordinate of the left side of this bounding box.

Link copied to clipboard
val midpoint: <Error class: unknown class><Float>

Midpoint of this bounding box.

Link copied to clipboard

X coordinate of the right side of this bounding box.

Link copied to clipboard
val top: Float

Y coordinate of the top side of this bounding box.

Link copied to clipboard

Width of this bounding box.