• Clamps the passed in number to the passed in min and max values.

    Parameters

    • val: number
    • min: number
    • max: number

    Returns number