valCoord2D method

double valCoord2D(
  1. int seed,
  2. int x,
  3. int y
)

Implementation

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