pub fn chunk_from_pillar(&self, pos: PillarIndex) -> Option<&Chunk> {
        let tmp = AxialPoint::new(
            pos.0.q / (super::CHUNK_SIZE as i32),
            pos.0.r / (super::CHUNK_SIZE as i32),
        );
        let chunk_pos = ChunkIndex(tmp);
        self.chunk_at(chunk_pos)
    }
/// Returns the chunk in which the given pillar exists.
Returns the chunk in which the given pillar exists.
Returns the chunk in which the given pillar exists .
pub fn chunk_from_pillar(&self, pos: PillarIndex) -> Option<&Chunk> {
        let tmp = AxialPoint::new(
            pos.0.q / (super::CHUNK_SIZE as i32),
            pos.0.r / (super::CHUNK_SIZE as i32),
        );
        let chunk_pos = ChunkIndex(tmp);
        self.chunk_at(chunk_pos)
    }
pub fn chunk_from_pillar ( & self , pos : PillarIndex ) -> Option < & Chunk > { let tmp = AxialPoint :: new ( pos . 0 . q / ( super :: CHUNK_SIZE as i32 ) , pos . 0 . r / ( super :: CHUNK_SIZE as i32 ) , ) ; let chunk_pos = ChunkIndex ( tmp ) ; self . chunk_at ( chunk_pos ) }
Returns the chunk in which the given pillar exists.
Returns the chunk in which the given pillar exists .
&self
pos
PillarIndex