noise2 method

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

Implementation

@override
double noise2(double x, double y) {
  List<double> box =
      getScaleBoundsC2D2(x, y).map((e) => e.toDouble()).toList();
  return blerp(
      input.noise2(box[X1_D2], box[Y1_D2]),
      input.noise2(box[X2_D2], box[Y1_D2]),
      input.noise2(box[X1_D2], box[Y2_D2]),
      input.noise2(box[X2_D2], box[Y2_D2]),
      normalize(box[X1_D2], box[X2_D2], x),
      normalize(box[Y1_D2], box[Y2_D2], y));
}