MCPcopy Index your code
hub / github.com/stemkoski/stemkoski.github.com / clamp

Function clamp

7DFPS/js/Three.js:2794–2798  ·  view source on GitHub ↗
( x )

Source from the content-addressed store, hash-verified

2792 // clamp, to handle numerical problems
2793
2794 function clamp( x ) {
2795
2796 return Math.min( Math.max( x, -1 ), 1 );
2797
2798 }
2799
2800 var te = m.elements;
2801 var m11 = te[0], m12 = te[4], m13 = te[8];

Callers 1

Three.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected