Example #1
0
 /**
  * Public helper function that calls FromFaceIJ if sameFace is true, or
  * FromFaceIJWrap if sameFace is false.
  */
 public static function fromFaceIJSame($face, $i, $j, $sameFace)
 {
     if ($sameFace) {
         return S2CellId::fromFaceIJ($face, $i, $j);
     } else {
         return S2CellId::fromFaceIJWrap($face, $i, $j);
     }
 }