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

package.lib.velocity.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
*/
export function velocityPerSecond(velocity, frameDuration) {
    return frameDuration ? velocity * (1000 / frameDuration) : 0;
}
//# sourceMappingURL=velocity.js.map




© 2015 - 2025 Weber Informatics LLC | Privacy Policy