magic 3 -> S2.FACE_BITS

This commit is contained in:
AJ ONeal 2016-07-28 09:04:22 -04:00
parent d344d81611
commit c275019aec
1 changed files with 1 additions and 1 deletions

View File

@ -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;