findTimeInterval

abstract fun findTimeInterval(time: Double): Int

Searches for the interval that the supplied time falls within. Returns -1 if no interval is found

Interval indexing starts at index 0 (i.e. 0 is the first interval, silly Java zero based indexing)

Return

the index of the interval

Parameters

time

the time to look for