Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
Signed-off-by: netthier <[email protected]>
  • Loading branch information
netthier committed Apr 15, 2024
1 parent 4222566 commit 2053186
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/contourbuilder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 2053186

Please sign in to comment.