noise2 method

  1. @override
double noise2(
  1. double x,
  2. double y
)
override

Implementation

@override
double noise2(double x, double y) {
  try {
    return cache.get(x.toInt(), y.toInt());
  } catch (e) {
    return 0;
  }
}