pub struct HeightMapTile {
pub outer_values: Vec<i16>,
pub inner_values: Vec<i16>,
}Expand description
Height map data for a single map tile (MARE chunk)
WDL height data provides low-resolution terrain heights for each ADT tile. The data consists of 545 signed 16-bit integers total:
- 17x17 outer grid (289 values) - vertices at chunk corners
- 16x16 inner grid (256 values) - vertices at chunk centers
This matches the vertex layout of full ADT heightmaps but at lower resolution.
Fields§
§outer_values: Vec<i16>Outer heightmap values (17x17 grid) These represent the height values at the corners of each chunk
inner_values: Vec<i16>Inner heightmap values (16x16 grid) These represent the height values at the centers of each chunk
Implementations§
Source§impl HeightMapTile
impl HeightMapTile
Sourcepub const OUTER_COUNT: usize
pub const OUTER_COUNT: usize
Number of outer height map values (17x17)
Sourcepub const INNER_COUNT: usize
pub const INNER_COUNT: usize
Number of inner height map values (16x16)
Sourcepub const TOTAL_COUNT: usize
pub const TOTAL_COUNT: usize
Total count of height map values (545)
Trait Implementations§
Source§impl Clone for HeightMapTile
impl Clone for HeightMapTile
Source§fn clone(&self) -> HeightMapTile
fn clone(&self) -> HeightMapTile
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HeightMapTile
impl Debug for HeightMapTile
Auto Trait Implementations§
impl Freeze for HeightMapTile
impl RefUnwindSafe for HeightMapTile
impl Send for HeightMapTile
impl Sync for HeightMapTile
impl Unpin for HeightMapTile
impl UnsafeUnpin for HeightMapTile
impl UnwindSafe for HeightMapTile
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