pub struct Vspan {
pub x: u32,
pub y: u32,
pub z0: u8,
pub z1: u8,
}Expand description
One vertical span on a column: (x, y, z0..=z1) solid voxels.
z1 is INCLUSIVE per voxlap’s vspans convention — the actual
edited range is the half-open [z0, z1 + 1). Same convention
makes a Vspan { z0: 100, z1: 100 } carve / fill exactly one
voxel at z=100.
x / y are full-world u32 coordinates (cleaner than voxlap’s
8-bit vspans.x + setspans offs trick — for our cave demo
the patch-relative + offset machinery isn’t needed).
Fields§
§x: u32§y: u32§z0: u8§z1: u8Trait Implementations§
impl Copy for Vspan
impl Eq for Vspan
impl StructuralPartialEq for Vspan
Auto Trait Implementations§
impl Freeze for Vspan
impl RefUnwindSafe for Vspan
impl Send for Vspan
impl Sync for Vspan
impl Unpin for Vspan
impl UnsafeUnpin for Vspan
impl UnwindSafe for Vspan
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more