[][src]Trait building_blocks_storage::chunk_map::ChunkShape

pub trait ChunkShape<N> {
    fn mask(&self) -> PointN<N>;
fn chunk_key_containing_point(mask: &PointN<N>, p: &PointN<N>) -> PointN<N>; }

Required methods

fn mask(&self) -> PointN<N>

Makes the mask required to convert points to chunk keys.

fn chunk_key_containing_point(mask: &PointN<N>, p: &PointN<N>) -> PointN<N>

A chunk key is just the leading m bits of each component of a point, where m depends on the size of the chunk. It can also be interpreted as the minimum point of a chunk extent.

Loading content...

Implementations on Foreign Types

impl ChunkShape<[i32; 2]> for Point2i[src]

impl ChunkShape<[i32; 3]> for Point3i[src]

Loading content...

Implementors

Loading content...