Function clamp01

  • Clamps the value of n within the range of [0, 1].

    Parameters

    • n: number

    Returns number