Struct dot_vox::Voxel
[−]
[src]
pub struct Voxel { pub x: u8, pub y: u8, pub z: u8, pub i: u8, }
A Voxel
A Voxel is a point in 3D space, with an indexed colour attached.
Fields
x: u8
The X coordinate for the Voxel
y: u8
The Y coordinate for the Voxel
z: u8
The Z coordinate for the Voxel
i: u8
Index in the Color Pallete
Methods
impl Voxel
[src]
Trait Implementations
impl Clone for Voxel
[src]
fn clone(&self) -> Voxel
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more