Vertexes

Functions for working with cell vertex indexes.

Corresponds to the H3 C API Vertex section.

FastH3.cellToVertexFunction
cellToVertex(origin::H3Index, vertexNum::Int) -> (H3Error, H3Index)

Get a vertex H3 index for vertex number vertexNum (0-indexed) of cell origin.

See also the H3 C API: cellToVertex

source
FastH3.cellToVertexesFunction
cellToVertexes(op::F, origin::H3Index) -> H3Error where {F}

Call op(vertex) for each vertex H3 index of the cell (no result vector allocated).

See also the H3 C API: cellToVertexes

source
cellToVertexes(origin::H3Index) -> (H3Error, Vector{H3Index})

Get all vertex H3 indexes for a cell (5 for pentagons, 6 for hexagons).

See also the H3 C API: cellToVertexes

source