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

Function clamp

Three.js/js/Three56.js:1889–1893  ·  view source on GitHub ↗
( x )

Source from the content-addressed store, hash-verified

1887 // clamp, to handle numerical problems
1888
1889 function clamp( x ) {
1890
1891 return Math.min( Math.max( x, -1 ), 1 );
1892
1893 }
1894
1895 var te = m.elements;
1896 var m11 = te[0], m12 = te[4], m13 = te[8];

Callers 1

Three56.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected