getScaleBoundsC1D4 method

List<int> getScaleBoundsC1D4(
  1. double x
)

Gets the x1,x2,x3,x4 @param x cx coord @return x1,x2,x3,x4

Implementation

List<int> getScaleBoundsC1D4(double x) {
  int fx = getRadiusFactor(x);

  return [
    ((fx - 1) * scaleInterpolation).round(),
    (fx * scaleInterpolation).round(),
    ((fx + 1) * scaleInterpolation).round(),
    ((fx + 2) * scaleInterpolation).round()
  ];
}