Skip to main content

validate_heightfield

Function validate_heightfield 

Source
pub fn validate_heightfield(
    heights: &[f64],
    rows: usize,
    cols: usize,
    scale_x: f64,
    scale_z: f64,
) -> Result<()>
Expand description

Validate a height-field descriptor.

Checks that rows >= 2, cols >= 2, scale_x > 0, scale_z > 0, and heights.len() == rows * cols.