@cesium/engine
Version:
CesiumJS is a JavaScript library for creating 3D globes and 2D maps in a web browser without a plugin.
24 lines (23 loc) • 494 B
JavaScript
/**
* 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 = start ?? 0.0;
/**
* The end of the interval.
* @type {number}
* @default 0.0
*/
this.stop = stop ?? 0.0;
}
export default Interval;