MCPcopy
hub / github.com/stemkoski/stemkoski.github.com / getUvIndex

Function getUvIndex

MathBox/mathbox-bundle.js:10440–10455  ·  view source on GitHub ↗
( uv )

Source from the content-addressed store, hash-verified

10438 }
10439
10440 function getUvIndex( uv ) {
10441
10442 var hash = uv.x.toString() + uv.y.toString();
10443
10444 if ( uvsHash[ hash ] !== undefined ) {
10445
10446 return uvsHash[ hash ];
10447
10448 }
10449
10450 uvsHash[ hash ] = uvs.length / 2;
10451 uvs.push( uv.x, uv.y );
10452
10453 return uvsHash[ hash ];
10454
10455 }
10456
10457 output.data = {};
10458

Callers 1

mathbox-bundle.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected