• Clamps a number between a minimum and maximum value

    Parameters

    • num: number

      the source number

    • min: number

      the minimum value

    • max: number

      the maximum value

    Returns number

    the clamped number