All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.dist.esm.utils.within.js Maven / Gradle / Ivy

There is a newer version: 2.11.8
Show newest version
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;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy