magic 3 -> S2.FACE_BITS
This commit is contained in:
parent
d344d81611
commit
c275019aec
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue