UNPKG

prismarine-physics

Version:

Provide the physics engine for minecraft entities

4 lines (3 loc) 90 B
exports.clamp = function clamp (min, x, max) { return Math.max(min, Math.min(x, max)) }