magic 3 -> S2.FACE_BITS

Esse commit está contido em:
AJ ONeal 2016-07-28 09:04:22 -04:00
commit c275019aec

Ver arquivo

@ -333,7 +333,7 @@ S2.fromFacePosLevel = function (faceN, posS, levelN) {
posB = '0' + posB; posB = '0' + posB;
} }
var bin = Long.fromString(faceN.toString(10), true, 10).toString(2); var bin = Long.fromString(faceN.toString(10), true, 10).toString(2);
while (bin.length < 3) { while (bin.length < S2.FACE_BITS) {
bin = '0' + bin; bin = '0' + bin;
} }
bin += posB; bin += posB;