Module symphonia_core::util::clamp

source ·
Expand description

Utilities for clamping numeric values to a defined range.

Functions§

  • Clamps the given value to the [-1.0, 1.0] range.
  • Clamps the given value to the [-1.0, 1.0] range.
  • Clamps the given value to the [-128, 127] range.
  • Clamps the given value to the [-32_767, 32_768] range.
  • Clamps the given value to the [-8_388_608, 8_388_607] range.
  • Clamps the given value to the [-2_147_483_648, 2_147_483_647] range.
  • Clamps the given value to the [0, 255] range.
  • Clamps the given value to the [0, 65_535] range.
  • Clamps the given value to the [0, 16_777_215] range.
  • Clamps the given value to the [0, 4_294_967_295] range.