Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/stemkoski/stemkoski.github.com
/ clamp
Function
clamp
Three.js/js/Three66.js:2986–2990 ·
view source on GitHub ↗
( x )
Source
from the content-addressed store, hash-verified
2984
// clamp, to handle numerical problems
2985
2986
function
clamp( x ) {
2987
2988
return
Math.min( Math.max( x, -1 ), 1 );
2989
2990
}
2991
2992
var
te = m.elements;
2993
var
m11 = te[0], m12 = te[4], m13 = te[8];
Callers
1
Three66.js
File · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected