Module planetkit::globe [] [src]

Modules

chunk
icosahedron

Structs

ChunkOrigin

Wrapper type around a Pos that is known to express a valid chunk origin.

ChunkSharedPoints

Iterate over all the points in a chunk that are shared with any other chunk. That is, those on the planes of x=0, x=max, y=0, and y=max, but neither the top nor bottom planes.

ChunkSystem

Loads and unloads Chunks for a Globe.

ChunkView
ChunkViewSystem
ChunksInSameRootContainingPoint
Cursor

A cell-oriented view into a globe.

CursorMut

A cell-oriented view into a mutable globe.

Globe
Spec
View

Functions

is_point_on_chunk_edge
origin_of_chunk_in_same_root_containing

Calculate the origin of a chunk that contains the given pos, with the guarantee that the chunk will be in the same root even if pos is on the edge of that root.

origin_of_chunk_owning
project