Module veloren_world::util::math
source · Functions§
- Return a value between 0 and 1 corresponding to how close to the centre of
range
x
is. The exact function used is left unspecified, but it shall have the shape of a bell-like curve. This function is required to return0
(or a value extremely close to0
) whenx
is outside ofrange
.