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

The X coordinate for the Voxel

The Y coordinate for the Voxel

The Z coordinate for the Voxel

Index in the Color Pallete

Methods

impl Voxel
[src]

[src]

Instantiate a Voxel.

Trait Implementations

impl Clone for Voxel
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for Voxel
[src]

impl Debug for Voxel
[src]

[src]

Formats the value using the given formatter.

impl PartialEq for Voxel
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.