Range

data class Range(val min: Double, val max: Double)

Represents a numeric range with a minimum and maximum value, inclusive on both ends.

Constructors

Link copied to clipboard
constructor(min: Double, max: Double)

Properties

Link copied to clipboard
val max: Double

The upper bound of the range, inclusive.

Link copied to clipboard
val min: Double

The lower bound of the range, inclusive.

Functions

Link copied to clipboard
operator fun contains(value: Double): Boolean

Whether the given value is within this range.