Box

data class Box(val left: Double, val top: Double, val right: Double, val bottom: Double)

An axis-aligned rectangle, top-left origin, in whatever pixel space the caller documents.

Constructors

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

Properties

Link copied to clipboard
Link copied to clipboard

The vertical centre of the box.

Link copied to clipboard

The box's vertical extent.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val top: Double
Link copied to clipboard

The box's horizontal extent.

Functions

Link copied to clipboard

Whether this box and other overlap vertically by at least half the smaller height.

Link copied to clipboard

The smallest box that holds both this box and other.