Made the required changes for the PR

This commit is contained in:
Ralph Niemitz 2018-09-04 06:38:43 +02:00
parent 6d2fa795f7
commit 0128a014c6
2 changed files with 4 additions and 7 deletions

View File

@ -4,7 +4,6 @@ import java.util.Random;
/** /**
* Implementation of the simplex noise algorithm. * Implementation of the simplex noise algorithm.
* @see <a href="https://en.wikipedia.org/wiki/Simplex_noise">Wikipedia</a>
*/ */
public class SimplexNoise { public class SimplexNoise {
@ -16,9 +15,9 @@ public class SimplexNoise {
private long seed; private long seed;
/** /**
* @param largestFeature size of the largest possible feature * @param largestFeature the diameter of the largest possible "cloud".
* @param persistence the persistence * @param persistence the persistence. a low persistence causes smoother transition between the features while a high one makes the transition hard. (range = {@code 0.0F} - {@code 1.0F})
* @param seed the seed * @param seed the seed this algorithm will use to generate pseudo random numbers. The generation will always look the same if the seed and the other parameters have the same value as in a previous generation
*/ */
public SimplexNoise(int largestFeature, double persistence, long seed) { public SimplexNoise(int largestFeature, double persistence, long seed) {

View File

@ -45,7 +45,7 @@ public class SimplexNoiseOctave {
private final short[] permMod12 = new short[LENGTH]; private final short[] permMod12 = new short[LENGTH];
/** /**
* @param seed the seed for this octave * @param seed the seed that this octave uses to generate pseudo random numbers
*/ */
public SimplexNoiseOctave(long seed) { public SimplexNoiseOctave(long seed) {
@ -201,7 +201,6 @@ public class SimplexNoiseOctave {
* @param y Y * @param y Y
* @param z Z * @param z Z
* @return the noise * @return the noise
* @since 21.08.2018/0.2.0
*/ */
public double noise(double x, double y, double z) { public double noise(double x, double y, double z) {
@ -380,7 +379,6 @@ public class SimplexNoiseOctave {
* @param x X * @param x X
* @param y Y * @param y Y
* @param z Z * @param z Z
* @since 21.08.2018/0.2.0
*/ */
private Gradient(double x, double y, double z) { private Gradient(double x, double y, double z) {