API Docs for:
Show:

File: src/lib/interval.coffee


###*
interval, containing start and and

@class Interval
@module interval-tree2
###
class Interval


    ###*
    @constructor
    @param {Number} start start of the interval
    @param {Number} end end of the interval
    @param {Number|String} id id of the interval
    ###
    constructor: (@start, @end, @id) ->


    ###*
    get center of the interval

    @method center
    @return {Number} center
    ###
    center: -> ( @start + @end ) / 2

module.exports = Interval