Expand description
The h3o-bit
library provides bit twiddling routines for H3 indexes.
This is a low-level library that assumes that you know what you’re doing (there are no guardrails: garbage-in, garbage-out).
Unless you’re implementing algorithms/data structures for H3 indexes, you should be using h3o.
This crate is mostly for sharing low-level primitives between the h3o crates, thus the API is enriched on a need basis.
Constants§
- DEFAULT_
CELL_ INDEX - Default cell index (resolution 0, base cell 0).
- DIRECTION_
BITSIZE - Size, in bits, of a direction (range [0; 6].
- MAX_
RESOLUTION - Maximum supported H3 resolution.
Functions§
- clr_
direction - Clears the H3 index direction at the given resolution.
- clr_
resolution - Clears the H3 index resolution bits.
- direction_
mask - Returns the bit mask of the direction at this resolution in an H3 index.
- direction_
offset - Returns the bit offset of the direction at this resolution in an H3 index.
- get_
base_ cell - Returns the H3 index base cell bits.
- get_
direction - Returns the H3 index direction bits at the given resolution.
- get_
resolution - Returns the H3 index resolution.
- set_
base_ cell - Sets the H3 index base cell bits.
- set_
direction - Set the H3 index direction bits at the given resolution.
- set_
resolution - Sets the H3 index resolution bits.