You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
439 B
13 lines
439 B
/**
|
|
* <zh/> 判断值是否在区间内
|
|
*
|
|
* <en/> Judge whether the value is in the interval
|
|
* @param value - <zh/> 值 | <en/> value
|
|
* @param min - <zh/> 最小值 | <en/> minimum value
|
|
* @param max - <zh/> 最大值 | <en/> maximum value
|
|
* @returns <zh/> 是否在区间内 | <en/> whether in the interval
|
|
*/
|
|
export function isBetween(value, min, max) {
|
|
return value >= min && value <= max;
|
|
}
|
|
//# sourceMappingURL=math.js.map
|