ChildBeginAtLevel returns the first cell in a traversal of children a given level deeper than this cell, in Hilbert curve order. The given level must be no smaller than the cell's level. See ChildBegin for example use.
(level int)
| 395 | // Hilbert curve order. The given level must be no smaller than the cell's level. |
| 396 | // See ChildBegin for example use. |
| 397 | func (ci CellID) ChildBeginAtLevel(level int) CellID { |
| 398 | return CellID(uint64(ci) - ci.lsb() + lsbForLevel(level)) |
| 399 | } |
| 400 | |
| 401 | // ChildEnd returns the first cell after a traversal of the children of this cell in Hilbert curve order. |
| 402 | // The returned cell may be invalid. |