getScaleBoundsC2D4 method

List<int> getScaleBoundsC2D4(
  1. double x,
  2. double y
)

Gets the x1,x2,x3,x4,y1,y2,y3,y4 @param x cx coord @return x1,x2,x3,x4,y1,y2,y3,y4

Implementation

List<int> getScaleBoundsC2D4(double x, double y) {
  int fx = getRadiusFactor(x);
  int fy = getRadiusFactor(y);
  return [
    ((fx - 1) * scaleInterpolation).round(),
    (fx * scaleInterpolation).round(),
    ((fx + 1) * scaleInterpolation).round(),
    ((fx + 2) * scaleInterpolation).round(),
    ((fy - 1) * scaleInterpolation).round(),
    (fy * scaleInterpolation).round(),
    ((fy + 1) * scaleInterpolation).round(),
    ((fy + 2) * scaleInterpolation).round()
  ];
}