Clamp a value to be within the provided range.
@param value the value to clamp
@param low the low end of the range
@param high the high end of the range
@return the clamped value
Map a value within a given range to another range.
@param value the value to map
@param fromLow the low end of the range the value is within
@param fromHigh the high end of the range the value is within
@param toLow the low end of the range to map to
@param toHigh the high end of the range to map to
@return the mapped value