MCPcopy Create free account
hub / github.com/bwasti/mebm / getIndex

Method getIndex

script.js:385–389  ·  view source on GitHub ↗
(ref_time)

Source from the content-addressed store, hash-verified

383 }
384
385 getIndex(ref_time) {
386 let time = ref_time - this.start_time;
387 let index = Math.floor(time / 1000 * fps);
388 return index;
389 }
390
391 getTime(index) {
392 return (index / fps * 1000) + this.start_time;

Callers 4

delete_anchorMethod · 0.95
nearest_anchorMethod · 0.95
getFrameMethod · 0.95
updateMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected