static computeDimension(topLeft, topRight, bottomLeft, moduleSize /*float*/) {
			const tltrCentersDimension = MathUtils.round(ResultPoint.distance(topLeft, topRight) / moduleSize);
			const tlblCentersDimension = MathUtils.round(ResultPoint.distance(topLeft, bottomLeft) / moduleSize);
			let dimension = Math.floor((tltrCentersDimension + tlblCentersDimension) / 2) + 7;
			switch (dimension & 0x03) { // mod 4
				case 0:
					dimension++;
					break;
				// 1? do nothing
				case 2:
					dimension--;
					break;
				case 3:
					throw new NotFoundException('Dimensions could be not found.');
			}
			return dimension;
		}
<p>Computes the dimension (number of modules on a size) of the QR Code based on the position
of the finder patterns and estimated module size.</p>