Skip to content

Commit

Permalink
Rust rename domain_warp to domain_warp_2d to match naming scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
Auburn committed Oct 6, 2023
1 parent e1a694d commit 6911a79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Rust/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 6911a79

Please sign in to comment.