Trait veloren_common_net::msg::compression::PackingFormula

source ·
pub trait PackingFormula: Copy {
    // Required methods
    fn dimensions(&self, dims: Vec3<u32>) -> (u32, u32);
    fn index(&self, dims: Vec3<u32>, x: u32, y: u32, z: u32) -> (u32, u32);
}
Expand description

Formula for packing voxel data into a 2d array

Required Methods§

source

fn dimensions(&self, dims: Vec3<u32>) -> (u32, u32)

source

fn index(&self, dims: Vec3<u32>, x: u32, y: u32, z: u32) -> (u32, u32)

Object Safety§

This trait is not object safe.

Implementors§