Mission Control Dashboard - Initial implementation
This commit is contained in:
12
node_modules/motion-utils/dist/es/velocity-per-second.mjs
generated
vendored
Normal file
12
node_modules/motion-utils/dist/es/velocity-per-second.mjs
generated
vendored
Normal file
@@ -0,0 +1,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
|
||||
Reference in New Issue
Block a user