Structure to handle a range of values, where the range has a minimum value and a maximum value.

Constructors

Accessors

Constructors

  • Parameters

    • _min: number

      The minimum value of the Range.

    • _max: number

      The maximum value of the Range.

    Returns Range

Accessors

  • get max(): number
  • Returns number

    The maximum value of the Range.

  • set max(newMax): void
  • If the given newMax is less than the current min, the fields min and max will be set so that min is less than max.

    Parameters

    • newMax: number

      The new maximum value of the Range.

    Returns void

  • get min(): number
  • Returns number

    The minimum value of the Range.

  • set min(newMin): void
  • If the given newMin is greater than the current max, the fields min and max will be set so that min is less than max.

    Parameters

    • newMin: number

      The new minimum value of the Range.

    Returns void