valCoord3D method

double valCoord3D(
  1. int seed,
  2. int x,
  3. int y,
  4. int z,
)

Implementation

double valCoord3D(int seed, int x, int y, int z) {
  int n = seed;
  n ^= X_PRIME * x;
  n ^= Y_PRIME * y;
  n ^= Z_PRIME * z;
  return ((n * n * n * 60493) / LONG_MAX_VALUE.toDouble());
}