File indexing completed on 2024-05-12 05:33:45
0001 /* 0002 SPDX-FileCopyrightText: 2018 Michail Vourlakos <mvourlakos@gmail.com> 0003 SPDX-License-Identifier: GPL-2.0-or-later 0004 */ 0005 0006 0007 //! bound the preferred value between minimum and maximum boundaries 0008 function bound(min, pref, max) 0009 { 0010 return Math.max(min, Math.min(pref, max)); 0011 }