Constructors

  • constructor

    Parameters

    • start: number
    • end: number

    Returns Interval

Properties

_end: any
_start: any

Accessors

  • get end(): number
  • Get interval's end

    Returns number

  • get length(): number
  • Get interval's length

    Returns number

  • get middle(): number
  • Get the middle number

    Returns number

  • get start(): number
  • Get interval's start

    Returns number

Methods

  • interval add by number

    Parameters

    Returns Interval

  • Parameters

    • alpha: number

    Returns Interval

  • Get the cloned object of this Interval.

    Returns Interval

  • Indicates whether the given value is included in this interval.

    Parameters

    • point: number
    • includeEnds: boolean

      Indicates whether to check the ends.

    • Optional tolerance: number

      Tolerance to check on the ends.

    Returns boolean

  • Indicates whether the given interval is included in this interval.

    Parameters

    • interval: Interval
    • includeEnds: boolean

      Indicates whether to check the ends.

    • Optional tolerance: number

      Tolerance to check on the ends.

    Returns boolean

  • Interval expand

    Parameters

    • length: number

    Returns Interval

  • Combine with interval. If the intervals are not intersectant, we will return an invalid interval

    Parameters

    Returns Interval

  • Interval interpolate

    Parameters

    • alpha: number

    Returns number

  • Indicates whether the given interval is intersected with this interval.

    Parameters

    • interval: Interval
    • includeEnds: boolean

      Indicates whether to check the ends.

    • Optional tolerance: number

      Intersection tolerance.

    Returns boolean

  • Get the intersect part with interval. If the intervals are not intersectant, we will return an invalid interval

    Parameters

    Returns Interval

    | null

  • Indicates whether the given interval is intersected with this interval.

    Parameters

    • interval: Interval
    • includeEnds: boolean

      Indicates whether to check the ends.

    • Optional tolerance: number

      Intersection tolerance.

    Returns boolean

  • Returns true if this interval is equal to another within specified tolerance.

    Parameters

    Returns boolean

  • Indicates whether the Interval is Valid

    Returns boolean

  • interval mul by number

    Parameters

    • alpha: number

    Returns Interval

  • interval sub by Interval

    Parameters

    Returns Interval

  • interval string

    Returns string

  • Get the intersect intervals of two list of intervals.

    Parameters

    Returns Interval[]

    List

  • Returns Interval

  • interval mul by number

    Parameters

    Returns Interval

  • Combine the intervals.Return the list of intervals after unioned

    Parameters

    Returns Interval[]

Generated using TypeDoc