All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.dist.velocity.es.js Maven / Gradle / Ivy

There is a newer version: 10.17.0
Show newest version
/*
  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 };




© 2015 - 2024 Weber Informatics LLC | Privacy Policy