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

Function clamp

Three.js/js/Three62.js:2811–2815  ·  view source on GitHub ↗
( x )

Source from the content-addressed store, hash-verified

2809 // clamp, to handle numerical problems
2810
2811 function clamp( x ) {
2812
2813 return Math.min( Math.max( x, -1 ), 1 );
2814
2815 }
2816
2817 var te = m.elements;
2818 var m11 = te[0], m12 = te[4], m13 = te[8];

Callers 1

Three62.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected