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