Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/microsoft/SandDance
/ clamp
Function
clamp
docs/tests/v2/es6/js/sanddance.js:15326–15330 ·
view source on GitHub ↗
(value, min, max)
Source
from the content-addressed store, hash-verified
15324
}
15325
15326
function
clamp(value, min, max) {
15327
return
map(value,
function
(value) {
15328
return
Math.max(min, Math.min(max, value));
15329
});
15330
}
15331
15332
function
lerp(a, b, t) {
15333
if
(isArray(a)) {
Callers
3
rectangle
Function · 0.70
scale
Function · 0.70
transformer
Function · 0.70
Calls
3
map
Function · 0.70
max
Method · 0.45
min
Method · 0.45
Tested by
no test coverage detected