getScaleBoundsC3D2 method

List<int> getScaleBoundsC3D2(
  1. double x,
  2. double y,
  3. double z
)

Gets the x1,x2,y1,y2,z1,z2 @param x cx coord @param y cy coord @param z cz coord @return x1,x2,y1,y2,z1,z2

Implementation

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