change doc
Some checks failed
Rust Checks / checks (push) Has been cancelled
Rust Checks / checks (pull_request) Successful in 1m14s

This commit is contained in:
CoCo_Sol 2024-02-21 18:40:20 +01:00
parent 62eacf2c84
commit f184c93804

View file

@ -73,7 +73,7 @@ fn generate_map(
} }
} }
/// Returns the type of the position with the given noise. /// Returns the type of the [HexPosition] with the given noise.
fn get_type_tile(position: HexPosition<i32>, noise: &Perlin) -> Tile { fn get_type_tile(position: HexPosition<i32>, noise: &Perlin) -> Tile {
let pixel_position = position.to_pixel_coordinates() * MAP_GENERATION_ZOOM; let pixel_position = position.to_pixel_coordinates() * MAP_GENERATION_ZOOM;
let value = noise.get([pixel_position.x as f64, pixel_position.y as f64]); let value = noise.get([pixel_position.x as f64, pixel_position.y as f64]);