Function clamp

  • Clamp an input value to min and max

    Parameters

    • value: number

      input value

    • min: number = 0

      min value

    • max: number = 1

      max value

    Returns number

Generated using TypeDoc