From 2053186b419eb7200771f72a42eb61ca200100e3 Mon Sep 17 00:00:00 2001 From: netthier Date: Thu, 11 Apr 2024 16:23:36 +0200 Subject: [PATCH] Fix typo Signed-off-by: netthier --- src/contourbuilder.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/contourbuilder.rs b/src/contourbuilder.rs index 633e1b8..830a548 100644 --- a/src/contourbuilder.rs +++ b/src/contourbuilder.rs @@ -74,7 +74,7 @@ impl ContourBuilder { self } - fn smoooth_linear(&self, ring: &mut Ring, values: &[Float], value: Float) { + fn smooth_linear(&self, ring: &mut Ring, values: &[Float], value: Float) { let dx = self.dx; let dy = self.dy; let len_values = values.len(); @@ -134,7 +134,7 @@ impl ContourBuilder { result.drain(..).for_each(|mut ring| { // Smooth the ring if needed if self.smooth { - self.smoooth_linear(&mut ring, values, threshold); + self.smooth_linear(&mut ring, values, threshold); } // Compute the polygon coordinates according to the grid properties if needed if (self.x_origin, self.y_origin) != (0.0, 0.0) @@ -185,7 +185,7 @@ impl ContourBuilder { result.drain(..).for_each(|mut ring| { // Smooth the ring if needed if self.smooth { - self.smoooth_linear(&mut ring, values, threshold); + self.smooth_linear(&mut ring, values, threshold); } // Compute the polygon coordinates according to the grid properties if needed if (self.x_origin, self.y_origin) != (0.0, 0.0) @@ -250,7 +250,7 @@ impl ContourBuilder { .map(|mut ring| { // Smooth the ring if needed if self.smooth { - self.smoooth_linear(&mut ring, values, *threshold); + self.smooth_linear(&mut ring, values, *threshold); } ring.dedup(); // Compute the polygon coordinates according to the grid properties if needed