LongRect

data class LongRect(val left: Long, val top: Long, val right: Long, val bottom: Long)(source)

An immutable half-open rectangle in a large integer content coordinate space.

Construction validates edge ordering and rejects extents that overflow a Long. Empty rectangles are valid geometry, although components may require positive content extents. The value owns no external resources and is safe to share between threads.

Throws

when the edges are unordered.

when an extent cannot be represented as a Long.

Constructors

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

Types

Link copied to clipboard
object Companion

Common rectangle constants.

Properties

Link copied to clipboard

exclusive vertical edge.

Link copied to clipboard

The non-negative vertical extent.

Link copied to clipboard
val left: Long

inclusive horizontal edge.

Link copied to clipboard
val right: Long

exclusive horizontal edge.

Link copied to clipboard
val top: Long

inclusive vertical edge.

Link copied to clipboard
val width: Long

The non-negative horizontal extent.

Functions

Link copied to clipboard
operator fun contains(point: DoubleOffset): Boolean

Returns whether a finite content coordinate lies inside this rectangle.