Files
NapCatQQ/.pnpm-store/v3/files/e0/d17e3ec075358203518140f55215ca5d3f1b026308aa97033f1cc514bdbea59db6435cf8077295e5d6b026a5526a2d168a4537c2a7d604a51ea982fd47f71a
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

12 lines
278 B
Plaintext

/*
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 };