private void calc(int var1, int var2) {
        for (int var7 = 0; var7 < this.cSteps - 1; ++var7) {
            double var3 = (double) var2 * this.cCosA[var7] - (double) var1 * this.cSinA[var7];
            int var5 = (int) (var3 - this.cDMin);
            int var6 = var5 * this.cSteps + var7;

            try {
                this.cHMatrix[var6]++;
            } catch (Exception var9) {
                LOG.warn("", var9);
            }

        }

    }
Copied and pasted from Tess4j (https://sourceforge.net/projects/tess4j/)
tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-ocr-module/src/main/java/org/apache/tika/parser/ocr/tess4j/ImageDeskew.java