From c25da3ce974d6120574b83664733044e46741eba Mon Sep 17 00:00:00 2001 From: Abhijay Kumar Date: Thu, 23 May 2019 09:40:46 +0530 Subject: [PATCH] Update src/main/java/com/generation/SimplexNoise.java Co-Authored-By: Libin Yang --- src/main/java/com/generation/SimplexNoise.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/generation/SimplexNoise.java b/src/main/java/com/generation/SimplexNoise.java index 50abd399..fb4473dc 100644 --- a/src/main/java/com/generation/SimplexNoise.java +++ b/src/main/java/com/generation/SimplexNoise.java @@ -103,7 +103,7 @@ public class SimplexNoise { for (int index = 0; index < this.octaves.length; index++) { double frequency = Math.pow(2, index); - double amplitude = Math.pow(this.persistance, (double)this.octaves.length - index); + double amplitude = Math.pow(this.persistance, (double) this.octaves.length - index); result += this.octaves[index].noise(x / frequency, y / frequency, z / frequency) * amplitude; }