PluginProbe
WCPOS – Point of Sale (POS) plugin for WooCommerce / 1.10.20
WCPOS – Point of Sale (POS) plugin for WooCommerce v1.10.20
1.10.20 1.10.19 1.10.18 1.10.17 1.10.16 1.10.15 1.10.13 1.10.14 1.10.12 1.10.11 1.10.10 1.10.9 1.10.8 untagged-3d9b7ccddc54df87c672 1.10.7 1.10.6 1.10.5 1.10.3 1.10.4 1.10.2 1.10.1 1.10.0 1.9.17 1.9.15 1.9.16 All 164 releases
woocommerce-pos / vendor_prefixed / chillerlan / php-qrcode / src / Detector / AlignmentPattern.php

AlignmentPattern.php in WCPOS – Point of Sale (POS) plugin for WooCommerce 1.10.20, at vendor_prefixed/chillerlan/php-qrcode/src/Detector/AlignmentPattern.php

31 lines 886 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * Class AlignmentPattern
5 *
6 * @created 17.01.2021
7 * @author ZXing Authors
8 * @author Smiley <[email protected]>
9 * @copyright 2021 Smiley
10 * @license Apache-2.0
11 */
12 namespace WCPOS\Vendor\chillerlan\QRCode\Detector;
13
14 /**
15 * Encapsulates an alignment pattern, which are the smaller square patterns found in
16 * all but the simplest QR Codes.
17 *
18 * @author Sean Owen
19 */
20 final class AlignmentPattern extends ResultPoint
21 {
22 /**
23 * Combines this object's current estimate of a finder pattern position and module size
24 * with a new estimate. It returns a new FinderPattern containing an average of the two.
25 */
26 public function combineEstimate(float $i, float $j, float $newModuleSize) : self
27 {
28 return new self(($this->x + $j) / 2.0, ($this->y + $i) / 2.0, ($this->estimatedModuleSize + $newModuleSize) / 2.0);
29 }
30 }
31