kineticEnergyToVelocity
Commons
stable
Converts a kinetic-energy scalar (work) into a signed velocity using sqrt(2) scaling. Negative work produces negative velocity. Used internally by inertia-scroll and drag composables.
API
Signature
Full TypeScript signature sourced from the util file.
API
Parameters
Input parameters accepted by this util.
- workrequirednumber
- The kinetic energy scalar. Negative values yield negative (reversed) velocity.
API
Return value
The value returned by this util.
- The signed velocity: sign(work) × sqrt(|work|) × sqrt(2).
Usage
Examples
Ready-to-paste usage snippets.
Energy-to-velocity conversion