mirror of
https://git.hmsn.ink/kospo/helptalk/api.git
synced 2026-03-20 19:03:51 +09:00
first
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
import { max as mathMax, min as mathMin } from "./math.js";
|
||||
export function within(min, value, max) {
|
||||
return mathMax(min, mathMin(value, max));
|
||||
}
|
||||
export function withinMaxClamp(min, value, max) {
|
||||
var v = within(min, value, max);
|
||||
return v > max ? max : v;
|
||||
}
|
||||
Reference in New Issue
Block a user