noise2 method

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

Implementation

@override
double noise2(double x, double y) {
  List<double> box =
      getScaleBoundsC2D4(x, y).map((e) => e.toDouble()).toList();
  return bihermite(
      input.noise2(box[X1_D4], box[Y1_D4]),
      input.noise2(box[X1_D4], box[Y2_D4]),
      input.noise2(box[X1_D4], box[Y3_D4]),
      input.noise2(box[X1_D4], box[Y4_D4]),
      input.noise2(box[X2_D4], box[Y1_D4]),
      input.noise2(box[X2_D4], box[Y2_D4]),
      input.noise2(box[X2_D4], box[Y3_D4]),
      input.noise2(box[X2_D4], box[Y4_D4]),
      input.noise2(box[X3_D4], box[Y1_D4]),
      input.noise2(box[X3_D4], box[Y2_D4]),
      input.noise2(box[X3_D4], box[Y3_D4]),
      input.noise2(box[X3_D4], box[Y4_D4]),
      input.noise2(box[X4_D4], box[Y1_D4]),
      input.noise2(box[X4_D4], box[Y2_D4]),
      input.noise2(box[X4_D4], box[Y3_D4]),
      input.noise2(box[X4_D4], box[Y4_D4]),
      normalize(box[X2_D4], box[X3_D4], x),
      normalize(box[Y2_D4], box[Y3_D4], y),
      tension,
      bias);
}