----------------------------------------------------------------------------- Purpose: Check whether to clamp and then perform clamp Input : value - Output : Returns true if value changed -----------------------------------------------------------------------------