Interface TimedObject

時刻付きオブジェクト

Timed object

interface TimedObject {
    endTime: number;
    startTime: number;
    contains(time): boolean;
    overlaps(obj): boolean;
    overlaps(startTime, endTime): boolean;
}

Hierarchy (view full)

Implemented by

Properties

endTime: number
startTime: number

Methods

  • Returns whether this time range contains the specified time (start and end inclusive).

    Parameters

    • time: number

      時刻 [ms] / Time [ms]

    Returns boolean

  • Returns whether the specified range overlaps with this time range (start and end inclusive).

    Parameters

    • obj: TimedObject

      時刻付きオブジェクト / Timed object

    Returns boolean

  • Returns whether the specified range overlaps with this time range (start and end inclusive).

    Parameters

    • startTime: number

      開始時刻 [ms] / Start time [ms]

    • endTime: number

      終了時刻 [ms] / End time [ms]

    Returns boolean