Blame view

天文台pc/tianwentai-ui/node_modules/motion-utils/dist/es/velocity-per-second.mjs 327 Bytes
bc518174   王天杨   提交两个项目文件
1
2
3
4
5
6
7
8
9
10
11
12
  /*
    Convert velocity into velocity per second
  
    @param [number]: Unit per frame
    @param [number]: Frame duration in ms
  */
  function velocityPerSecond(velocity, frameDuration) {
      return frameDuration ? velocity * (1000 / frameDuration) : 0;
  }
  
  export { velocityPerSecond };
  //# sourceMappingURL=velocity-per-second.mjs.map