calcXPoint function

double calcXPoint(
  1. double xStart,
  2. int i,
  3. double distDeltaX
)

Calculate some X point in pixel from x start point xStart, index i and delta X distance distDeltaX

Implementation

double calcXPoint(double xStart, int i, double distDeltaX) {
  return xStart + (i * distDeltaX);
}