Collisions - collision math utilities. Moved from Flashbang.
MathUtil.clamp: avoid Math.min/max

(They're variadic, and so result in array creation)
no reason to take varargs here