foundPatternCross(stateCount) {
        const moduleSize = this.moduleSize;
        const maxVariance = moduleSize / 2.0;
        for (let i = 0; i < 3; i++) {
            if (Math.abs(moduleSize - stateCount[i]) >= maxVariance) {
                return false;
            }
        }
        return true;
    }
/**
     * @param stateCount count of black/white/black pixels just read
     * @return true iff the proportions of the counts is close enough to the 1/1/1 ratios
     *         used by alignment patterns to be considered a match
     */
@param stateCount count of black/white/black pixels just read
@return true iff the proportions of the counts is close enough to the 1/1/1 ratios
used by alignment patterns to be considered a match
@param stateCount count of black / white / black pixels just read @return true iff the proportions of the counts is close enough to the 1 / 1 / 1 ratios used by alignment patterns to be considered a match
foundPatternCross(stateCount) {
        const moduleSize = this.moduleSize;
        const maxVariance = moduleSize / 2.0;
        for (let i = 0; i < 3; i++) {
            if (Math.abs(moduleSize - stateCount[i]) >= maxVariance) {
                return false;
            }
        }
        return true;
    }
foundPatternCross ( stateCount ) { const moduleSize = this . moduleSize ; const maxVariance = moduleSize / 2.0 ; for ( let i = 0 ; i < 3 ; i ++ ) { if ( Math . abs ( moduleSize - stateCount [ i ] ) >= maxVariance ) { return false ; } } return true ; }
@param stateCount count of black/white/black pixels just read
 @return true iff the proportions of the counts is close enough to the 1/1/1 ratios
         used by alignment patterns to be considered a match
@param stateCount count of black / white / black pixels just read @return true iff the proportions of the counts is close enough to the 1 / 1 / 1 ratios used by alignment patterns to be considered a match