15832144755
2022-01-06 7b4c8991dca9cf2a809a95e239d144697d3afb56
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import defaultValue from "./defaultValue.js";
 
/**
 * Represents the closed interval [start, stop].
 * @alias Interval
 * @constructor
 *
 * @param {Number} [start=0.0] The beginning of the interval.
 * @param {Number} [stop=0.0] The end of the interval.
 */
function Interval(start, stop) {
  /**
   * The beginning of the interval.
   * @type {Number}
   * @default 0.0
   */
  this.start = defaultValue(start, 0.0);
  /**
   * The end of the interval.
   * @type {Number}
   * @default 0.0
   */
  this.stop = defaultValue(stop, 0.0);
}
export default Interval;