mirror of
https://github.com/misode/misode.github.io.git
synced 2026-04-23 23:27:09 +00:00
Fix #295 handle invalid values in set_count
This commit is contained in:
@@ -183,7 +183,7 @@ export function square(a: number) {
|
||||
}
|
||||
|
||||
export function clamp(a: number, b: number, c: number) {
|
||||
return Math.max(a, Math.min(b, c))
|
||||
return Math.max(b, Math.min(a, c))
|
||||
}
|
||||
|
||||
export function clampedLerp(a: number, b: number, c: number): number {
|
||||
|
||||
Reference in New Issue
Block a user