LookAtMySuitBot/js/node_modules/prismarine-physics/lib/math.js

4 lines
90 B
JavaScript

exports.clamp = function clamp (min, x, max) {
return Math.max(min, Math.min(x, max))
}