Lays the index over world.
Optionalframe: LocalFrame
Local frame for …Local positions (default: world.frame, followed across world changes).
Frame that local [x, z] positions are in.
Metres per radian of H3 latitude/longitude: the planet radius, or H3's Earth radius on flat worlds.
Linear size of this world's cells relative to H3's published Earth sizes (1 on flat worlds).
True on planets.
Area of a cell on this world, m².
Corners of a cell (6, or 5 for pentagons, plus extra points where it crosses an icosahedron edge) as local [x, z], counter-clockwise seen from above.
Cell containing a base-surface world position.
Cell containing local [x, z].
Local [x, z] of a cell's centre.
The descendants of cell at a finer resolution (7 per level; 6 under pentagons).
Every cell within k steps of cell (its k-ring disk, cell included).
Average hexagon edge length at res on this world, metres.
The ancestor of cell at a coarser resolution.
Resolution of a cell.
The resolution (0…15) whose average edge length is closest (in ratio) to metres on this world.
[latitude, longitude] in degrees of a base-surface world position (planet-centred, or [x, ·, z]).
Local [x, z] of a base-surface world position (NaN on the far side of a planet).
The H3 hexagonal hierarchical index laid over a world.
asin(y / |p|)and longitudeatan2(x, z), the same convention asWorld.frameAt. A resolution's metric size scales with the radius: edge(res) = H3 edge(res) × radius / 6 371 007 m. On a 120 km planet, resolution 8 (531 m on Earth) is 10 m across; resolution 3 (69 km on Earth) is 1.3 km.Local positions are
[x, z]in aLocalFrame(x east, z south): the world itself on flat worlds, a tangent plane (gnomonic projection) on planets.Example