public class SimplexNoiseSampler extends Object
Modifier and Type | Field and Description |
---|---|
protected static int[][] |
gradients |
double |
originX |
double |
originY |
double |
originZ |
private int[] |
permutations |
private static double |
SKEW_FACTOR_2D |
private static double |
SQRT_3 |
private static double |
UNSKEW_FACTOR_2D |
Constructor and Description |
---|
SimplexNoiseSampler(Random random) |
Modifier and Type | Method and Description |
---|---|
protected static double |
dot(int[] gArr,
double x,
double y,
double z) |
private int |
getGradient(int hash) |
private double |
grad(int hash,
double x,
double y,
double z,
double double2) |
double |
method_22416(double double2,
double double3,
double double4) |
double |
sample(double x,
double y) |
protected static final int[][] gradients
private static final double SQRT_3
private static final double SKEW_FACTOR_2D
private static final double UNSKEW_FACTOR_2D
private final int[] permutations
public final double originX
public final double originY
public final double originZ
public SimplexNoiseSampler(Random random)
private int getGradient(int hash)
protected static double dot(int[] gArr, double x, double y, double z)
private double grad(int hash, double x, double y, double z, double double2)
public double sample(double x, double y)
public double method_22416(double double2, double double3, double double4)