CellIDFromFace returns the cell corresponding to a given S2 cube face.
(face int)
| 107 | |
| 108 | // CellIDFromFace returns the cell corresponding to a given S2 cube face. |
| 109 | func CellIDFromFace(face int) CellID { |
| 110 | return CellID((uint64(face) << PosBits) + lsbForLevel(0)) |
| 111 | } |
| 112 | |
| 113 | // CellIDFromLatLng returns the leaf cell containing ll. |
| 114 | func CellIDFromLatLng(ll LatLng) CellID { |
searching dependent graphs…