From 6911a79c88b5a8e6e45d1e860c1f8140a710d4cc Mon Sep 17 00:00:00 2001 From: Auburn Date: Sat, 7 Oct 2023 00:14:28 +0100 Subject: [PATCH] Rust rename domain_warp to domain_warp_2d to match naming scheme --- Rust/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Rust/src/lib.rs b/Rust/src/lib.rs index 5a8b24f..6fd3a1b 100644 --- a/Rust/src/lib.rs +++ b/Rust/src/lib.rs @@ -342,7 +342,7 @@ impl FastNoiseLite { /// let (x, y) = domain_warp_2d(x, y); /// let noise = get_noise_2d(x, y); /// ``` - pub fn domain_warp(&mut self, x: Float, y: Float) -> (Float, Float) { + pub fn domain_warp_2d(&mut self, x: Float, y: Float) -> (Float, Float) { match self.fractal_type { FractalType::DomainWarpProgressive => self.domain_warp_fractal_progressive_2d(x, y), FractalType::DomainWarpIndependent => self.domain_warp_fractal_independent_2d(x, y),