Skip to content

Added SimplexNoise #511

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 27, 2018
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Made the required changes for the PR
  • Loading branch information
RalleYTN committed Sep 4, 2018
commit 0128a014c6a3a7d478fde2532f467e6a74b5ac4c
7 changes: 3 additions & 4 deletions src/main/java/com/generation/SimplexNoise.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

/**
* Implementation of the simplex noise algorithm.
* @see <a href="https://en.wikipedia.org/wiki/Simplex_noise">Wikipedia</a>
*/
public class SimplexNoise {

Expand All @@ -16,9 +15,9 @@ public class SimplexNoise {
private long seed;

/**
* @param largestFeature size of the largest possible feature
* @param persistence the persistence
* @param seed the seed
* @param largestFeature the diameter of the largest possible "cloud".
* @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 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) {

Expand Down
4 changes: 1 addition & 3 deletions src/main/java/com/generation/SimplexNoiseOctave.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public class SimplexNoiseOctave {
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) {

Expand Down Expand Up @@ -201,7 +201,6 @@ public double noise(double x, double y) {
* @param y Y
* @param z Z
* @return the noise
* @since 21.08.2018/0.2.0
*/
public double noise(double x, double y, double z) {

Expand Down Expand Up @@ -380,7 +379,6 @@ private static final class Gradient {
* @param x X
* @param y Y
* @param z Z
* @since 21.08.2018/0.2.0
*/
private Gradient(double x, double y, double z) {

Expand Down