Trait to provide generic access to various encoding schemas. All tile storages use this to encode their coordinates and provide different spatial encoding algorithms for efficiency.
fn from_dimensions(dimensions: Vector3<u32>) -> Self
Constructor interface for
Self which consumes the maps dimensions, which is required for some
encoding types to fit within a given coordinate space.
Encode the provided x, y and z 3-dimensional coordinates into a 1-dimensional array index.
Decode the provided 1-dimensional array index into its associated 3-dimensional coordinates.
fn allocation_size(dimensions: Vector3<u32>) -> usize
This function returns the actual number of elements allocated for a given dimension set and encoder.