S2CellId.childPosition

Return the child position (0..3) of this cell's ancestor at the given level within its parent. For example, child_position(1) returns the position of this cell's level-1 ancestor within its top-level face cell. REQUIRES: 1 <= level <= this->level().

  1. int childPosition()
  2. int childPosition(int level)
    struct S2CellId
    const
    int
    childPosition
    (
    int level
    )

Meta