noise3 method

  1. @override
double noise3(
  1. double x,
  2. double y,
  3. double z
)
override

Implementation

@override
double noise3(double x, double y, double z) {
  List<double> box =
      getScaleBoundsC3D2(x, y, z).map((e) => e.toDouble()).toList();
  return trilerp(
      input.noise3(box[X1_D2], box[Y1_D2], box[Z1_D2]),
      input.noise3(box[X2_D2], box[Y1_D2], box[Z1_D2]),
      input.noise3(box[X1_D2], box[Y2_D2], box[Z1_D2]),
      input.noise3(box[X2_D2], box[Y2_D2], box[Z1_D2]),
      input.noise3(box[X1_D2], box[Y1_D2], box[Z2_D2]),
      input.noise3(box[X2_D2], box[Y1_D2], box[Z2_D2]),
      input.noise3(box[X1_D2], box[Y2_D2], box[Z2_D2]),
      input.noise3(box[X2_D2], box[Y2_D2], box[Z2_D2]),
      normalize(box[X1_D2], box[X2_D2], x),
      normalize(box[Y1_D2], box[Y2_D2], y),
      normalize(box[Z1_D2], box[Z2_D2], z));
}