@bigby/math
Advanced tools
Comparing version 0.5.16 to 0.6.0-alpha.1
export declare const clamp: (value: number, min: number, max: number) => number; | ||
export declare const clamp01: (value: number) => number; | ||
//# sourceMappingURL=clamp.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.clamp = function (value, min, max) { | ||
return Math.min(Math.max(value, min), max); | ||
}; | ||
exports.clamp01 = function (value) { return exports.clamp(value, 0, 1); }; | ||
exports.clamp = (value, min, max) => Math.min(Math.max(value, min), max); | ||
exports.clamp01 = (value) => exports.clamp(value, 0, 1); | ||
//# sourceMappingURL=clamp.js.map |
export * from "./clamp"; | ||
//# sourceMappingURL=index.d.ts.map |
{ | ||
"name": "@bigby/math", | ||
"description": "Math helpers for Bigby projects.", | ||
"version": "0.5.16", | ||
"version": "0.6.0-alpha.1", | ||
"author": "Hendrik Mans <hendrik@mans.de>", | ||
@@ -34,3 +34,3 @@ "license": "MIT", | ||
}, | ||
"gitHead": "a098f1b0407e48abeb44fe4c2e3be0c8494d0a9e" | ||
"gitHead": "581349855372c5732b8f25a27d582f22a52b820e" | ||
} |
Sorry, the diff of this file is not supported yet
3518
11
13