MCPcopy
hub / github.com/stemkoski/stemkoski.github.com / clamp

Function clamp

Three.js/js/Three59dev.js:2786–2790  ·  view source on GitHub ↗
( x )

Source from the content-addressed store, hash-verified

2784 // clamp, to handle numerical problems
2785
2786 function clamp( x ) {
2787
2788 return Math.min( Math.max( x, -1 ), 1 );
2789
2790 }
2791
2792 var te = m.elements;
2793 var m11 = te[0], m12 = te[4], m13 = te[8];

Callers 1

Three59dev.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected