getScaleBoundsC2D2 method

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

Gets the x1,x2,y1,y2 @param x cx coord @param y cy coord @return x1,x2,y1,y2

Implementation

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