Function Clamp01

  • Clamps number between 0 and 1

    Returns

    Clamped01 number

    Parameters

    • a: number

      Value to clamp

    Returns number