chillerlan-QRCode-Detector-AlignmentPattern.html 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>Documentation</title>
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <base href="../">
  8. <link rel="icon" href="images/favicon.ico"/>
  9. <link rel="stylesheet" href="css/normalize.css">
  10. <link rel="stylesheet" href="css/base.css">
  11. <link rel="preconnect" href="https://fonts.gstatic.com">
  12. <link href="https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600;700&display=swap" rel="stylesheet">
  13. <link href="https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400;600;700&display=swap" rel="stylesheet">
  14. <link rel="stylesheet" href="css/template.css">
  15. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.0/css/all.min.css" integrity="sha256-ybRkN9dBjhcS2qrW1z+hfCxq+1aBdwyQM5wlQoQVt/0=" crossorigin="anonymous" />
  16. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/themes/prism-okaidia.css">
  17. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.css">
  18. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.css">
  19. <script src="https://cdn.jsdelivr.net/npm/fuse.js@3.4.6"></script>
  20. <script src="https://cdn.jsdelivr.net/npm/css-vars-ponyfill@2"></script>
  21. <script src="js/search.js"></script>
  22. <script defer src="js/searchIndex.js"></script>
  23. </head>
  24. <body id="top">
  25. <header class="phpdocumentor-header phpdocumentor-section">
  26. <h1 class="phpdocumentor-title"><a href="" class="phpdocumentor-title__link">Documentation</a></h1>
  27. <input class="phpdocumentor-header__menu-button" type="checkbox" id="menu-button" name="menu-button" />
  28. <label class="phpdocumentor-header__menu-icon" for="menu-button">
  29. <i class="fas fa-bars"></i>
  30. </label>
  31. <section data-search-form class="phpdocumentor-search">
  32. <label>
  33. <span class="visually-hidden">Search for</span>
  34. <svg class="phpdocumentor-search__icon" width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
  35. <circle cx="7.5" cy="7.5" r="6.5" stroke="currentColor" stroke-width="2"/>
  36. <line x1="12.4892" y1="12.2727" x2="19.1559" y2="18.9393" stroke="currentColor" stroke-width="3"/>
  37. </svg>
  38. <input type="search" class="phpdocumentor-field phpdocumentor-search__field" placeholder="Loading .." disabled />
  39. </label>
  40. </section>
  41. <nav class="phpdocumentor-topnav">
  42. <ul class="phpdocumentor-topnav__menu">
  43. </ul>
  44. </nav>
  45. </header>
  46. <main class="phpdocumentor">
  47. <div class="phpdocumentor-section">
  48. <input class="phpdocumentor-sidebar__menu-button" type="checkbox" id="sidebar-button" name="sidebar-button" />
  49. <label class="phpdocumentor-sidebar__menu-icon" for="sidebar-button">
  50. Menu
  51. </label>
  52. <aside class="phpdocumentor-column -four phpdocumentor-sidebar">
  53. <section class="phpdocumentor-sidebar__category">
  54. <h2 class="phpdocumentor-sidebar__category-header">Namespaces</h2>
  55. <h4 class="phpdocumentor-sidebar__root-namespace">
  56. <a href="namespaces/chillerlan.html" class="">chillerlan</a>
  57. </h4>
  58. <ul class="phpdocumentor-list">
  59. <li>
  60. <a href="namespaces/chillerlan-qrcode.html" class="">QRCode</a>
  61. </li>
  62. <li>
  63. <a href="namespaces/chillerlan-qrcodetest.html" class="">QRCodeTest</a>
  64. </li>
  65. </ul>
  66. </section>
  67. <section class="phpdocumentor-sidebar__category">
  68. <h2 class="phpdocumentor-sidebar__category-header">Packages</h2>
  69. <h4 class="phpdocumentor-sidebar__root-namespace">
  70. <a href="packages/Application.html" class="">Application</a>
  71. </h4>
  72. </section>
  73. <section class="phpdocumentor-sidebar__category">
  74. <h2 class="phpdocumentor-sidebar__category-header">Reports</h2>
  75. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/deprecated.html">Deprecated</a></h3>
  76. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/errors.html">Errors</a></h3>
  77. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/markers.html">Markers</a></h3>
  78. </section>
  79. <section class="phpdocumentor-sidebar__category">
  80. <h2 class="phpdocumentor-sidebar__category-header">Indices</h2>
  81. <h3 class="phpdocumentor-sidebar__root-package"><a href="indices/files.html">Files</a></h3>
  82. </section>
  83. </aside>
  84. <div class="phpdocumentor-column -eight phpdocumentor-content">
  85. <ul class="phpdocumentor-breadcrumbs">
  86. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan.html">chillerlan</a></li>
  87. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan-qrcode.html">QRCode</a></li>
  88. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan-qrcode-detector.html">Detector</a></li>
  89. </ul>
  90. <article class="phpdocumentor-element -class">
  91. <h2 class="phpdocumentor-content__title">
  92. AlignmentPattern
  93. <span class="phpdocumentor-element__extends">
  94. extends <a href="classes/chillerlan-QRCode-Detector-ResultPoint.html"><abbr title="\chillerlan\QRCode\Detector\ResultPoint">ResultPoint</abbr></a>
  95. </span>
  96. <div class="phpdocumentor-element__package">
  97. in package
  98. <ul class="phpdocumentor-breadcrumbs">
  99. <li class="phpdocumentor-breadcrumb"><a href="packages/Application.html">Application</a></li>
  100. </ul>
  101. </div>
  102. </h2>
  103. <aside class="phpdocumentor-element-found-in">
  104. <abbr class="phpdocumentor-element-found-in__file" title="src/Detector/AlignmentPattern.php"><a href="files/src-detector-alignmentpattern.html"><abbr title="src/Detector/AlignmentPattern.php">AlignmentPattern.php</abbr></a></abbr>
  105. :
  106. <span class="phpdocumentor-element-found-in__line">20</span>
  107. </aside>
  108. <p class="phpdocumentor-summary">Encapsulates an alignment pattern, which are the smaller square patterns found in
  109. all but the simplest QR Codes.</p>
  110. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  111. Tags
  112. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  113. </h5>
  114. <dl class="phpdocumentor-tag-list">
  115. <dt class="phpdocumentor-tag-list__entry">
  116. <span class="phpdocumentor-tag__name">author</span>
  117. </dt>
  118. <dd class="phpdocumentor-tag-list__definition">
  119. <section class="phpdocumentor-description"><p>Sean Owen</p>
  120. </section>
  121. </dd>
  122. </dl>
  123. <h3 id="toc">
  124. Table of Contents
  125. <a href="#toc" class="headerlink"><i class="fas fa-link"></i></a>
  126. </h3>
  127. <dl class="phpdocumentor-table-of-contents">
  128. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  129. <a href="classes/chillerlan-QRCode-Detector-ResultPoint.html#property_estimatedModuleSize">$estimatedModuleSize</a>
  130. <span>
  131. &nbsp;: float </span>
  132. </dt>
  133. <dd></dd>
  134. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  135. <a href="classes/chillerlan-QRCode-Detector-ResultPoint.html#property_x">$x</a>
  136. <span>
  137. &nbsp;: float </span>
  138. </dt>
  139. <dd></dd>
  140. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  141. <a href="classes/chillerlan-QRCode-Detector-ResultPoint.html#property_y">$y</a>
  142. <span>
  143. &nbsp;: float </span>
  144. </dt>
  145. <dd></dd>
  146. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  147. <a href="classes/chillerlan-QRCode-Detector-ResultPoint.html#method___construct">__construct()</a>
  148. <span>
  149. &nbsp;: mixed </span>
  150. </dt>
  151. <dd></dd>
  152. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  153. <a href="classes/chillerlan-QRCode-Detector-ResultPoint.html#method_aboutEquals">aboutEquals()</a>
  154. <span>
  155. &nbsp;: bool </span>
  156. </dt>
  157. <dd>Determines if this finder pattern &quot;about equals&quot; a finder pattern at the stated
  158. position and size -- meaning, it is at nearly the same center with nearly the same size.</dd>
  159. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  160. <a href="classes/chillerlan-QRCode-Detector-AlignmentPattern.html#method_combineEstimate">combineEstimate()</a>
  161. <span>
  162. &nbsp;: self </span>
  163. </dt>
  164. <dd>Combines this object&#039;s current estimate of a finder pattern position and module size
  165. with a new estimate. It returns a new FinderPattern containing an average of the two.</dd>
  166. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  167. <a href="classes/chillerlan-QRCode-Detector-ResultPoint.html#method_getEstimatedModuleSize">getEstimatedModuleSize()</a>
  168. <span>
  169. &nbsp;: float </span>
  170. </dt>
  171. <dd></dd>
  172. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  173. <a href="classes/chillerlan-QRCode-Detector-ResultPoint.html#method_getX">getX()</a>
  174. <span>
  175. &nbsp;: float </span>
  176. </dt>
  177. <dd></dd>
  178. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  179. <a href="classes/chillerlan-QRCode-Detector-ResultPoint.html#method_getY">getY()</a>
  180. <span>
  181. &nbsp;: float </span>
  182. </dt>
  183. <dd></dd>
  184. </dl>
  185. <section class="phpdocumentor-properties">
  186. <h3 class="phpdocumentor-elements__header" id="properties">
  187. Properties
  188. <a href="classes/chillerlan-QRCode-Detector-AlignmentPattern.html#properties" class="headerlink"><i class="fas fa-link"></i></a>
  189. </h3>
  190. <article
  191. class="
  192. phpdocumentor-element
  193. -property
  194. -protected
  195. "
  196. >
  197. <h4 class="phpdocumentor-element__name" id="property_estimatedModuleSize">
  198. $estimatedModuleSize
  199. <a href="classes/chillerlan-QRCode-Detector-ResultPoint.html#property_estimatedModuleSize" class="headerlink"><i class="fas fa-link"></i></a>
  200. <span class="phpdocumentor-element__modifiers">
  201. </span>
  202. </h4>
  203. <aside class="phpdocumentor-element-found-in">
  204. <abbr class="phpdocumentor-element-found-in__file" title="src/Detector/ResultPoint.php"><a href="files/src-detector-resultpoint.html"><abbr title="src/Detector/ResultPoint.php">ResultPoint.php</abbr></a></abbr>
  205. :
  206. <span class="phpdocumentor-element-found-in__line">26</span>
  207. </aside>
  208. <code class="phpdocumentor-code phpdocumentor-signature ">
  209. <span class="phpdocumentor-signature__visibility">protected</span>
  210. <span class="phpdocumentor-signature__type">float</span>
  211. <span class="phpdocumentor-signature__name">$estimatedModuleSize</span>
  212. </code>
  213. <section class="phpdocumentor-description"></section>
  214. <section class="phpdocumentor-description"></section>
  215. </article>
  216. <article
  217. class="
  218. phpdocumentor-element
  219. -property
  220. -protected
  221. "
  222. >
  223. <h4 class="phpdocumentor-element__name" id="property_x">
  224. $x
  225. <a href="classes/chillerlan-QRCode-Detector-ResultPoint.html#property_x" class="headerlink"><i class="fas fa-link"></i></a>
  226. <span class="phpdocumentor-element__modifiers">
  227. </span>
  228. </h4>
  229. <aside class="phpdocumentor-element-found-in">
  230. <abbr class="phpdocumentor-element-found-in__file" title="src/Detector/ResultPoint.php"><a href="files/src-detector-resultpoint.html"><abbr title="src/Detector/ResultPoint.php">ResultPoint.php</abbr></a></abbr>
  231. :
  232. <span class="phpdocumentor-element-found-in__line">24</span>
  233. </aside>
  234. <code class="phpdocumentor-code phpdocumentor-signature ">
  235. <span class="phpdocumentor-signature__visibility">protected</span>
  236. <span class="phpdocumentor-signature__type">float</span>
  237. <span class="phpdocumentor-signature__name">$x</span>
  238. </code>
  239. <section class="phpdocumentor-description"></section>
  240. <section class="phpdocumentor-description"></section>
  241. </article>
  242. <article
  243. class="
  244. phpdocumentor-element
  245. -property
  246. -protected
  247. "
  248. >
  249. <h4 class="phpdocumentor-element__name" id="property_y">
  250. $y
  251. <a href="classes/chillerlan-QRCode-Detector-ResultPoint.html#property_y" class="headerlink"><i class="fas fa-link"></i></a>
  252. <span class="phpdocumentor-element__modifiers">
  253. </span>
  254. </h4>
  255. <aside class="phpdocumentor-element-found-in">
  256. <abbr class="phpdocumentor-element-found-in__file" title="src/Detector/ResultPoint.php"><a href="files/src-detector-resultpoint.html"><abbr title="src/Detector/ResultPoint.php">ResultPoint.php</abbr></a></abbr>
  257. :
  258. <span class="phpdocumentor-element-found-in__line">25</span>
  259. </aside>
  260. <code class="phpdocumentor-code phpdocumentor-signature ">
  261. <span class="phpdocumentor-signature__visibility">protected</span>
  262. <span class="phpdocumentor-signature__type">float</span>
  263. <span class="phpdocumentor-signature__name">$y</span>
  264. </code>
  265. <section class="phpdocumentor-description"></section>
  266. <section class="phpdocumentor-description"></section>
  267. </article>
  268. </section>
  269. <section class="phpdocumentor-methods">
  270. <h3 class="phpdocumentor-elements__header" id="methods">
  271. Methods
  272. <a href="classes/chillerlan-QRCode-Detector-AlignmentPattern.html#methods" class="headerlink"><i class="fas fa-link"></i></a>
  273. </h3>
  274. <article
  275. class="phpdocumentor-element
  276. -method
  277. -public
  278. "
  279. >
  280. <h4 class="phpdocumentor-element__name" id="method___construct">
  281. __construct()
  282. <a href="classes/chillerlan-QRCode-Detector-ResultPoint.html#method___construct" class="headerlink"><i class="fas fa-link"></i></a>
  283. </h4>
  284. <aside class="phpdocumentor-element-found-in">
  285. <abbr class="phpdocumentor-element-found-in__file" title="src/Detector/ResultPoint.php"><a href="files/src-detector-resultpoint.html"><abbr title="src/Detector/ResultPoint.php">ResultPoint.php</abbr></a></abbr>
  286. :
  287. <span class="phpdocumentor-element-found-in__line">31</span>
  288. </aside>
  289. <code class="phpdocumentor-code phpdocumentor-signature ">
  290. <span class="phpdocumentor-signature__visibility">public</span>
  291. <span class="phpdocumentor-signature__name">__construct</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">float&nbsp;</span><span class="phpdocumentor-signature__argument__name">$x</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">float&nbsp;</span><span class="phpdocumentor-signature__argument__name">$y</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">float&nbsp;</span><span class="phpdocumentor-signature__argument__name">$estimatedModuleSize</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">mixed</span></code>
  292. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  293. <dl class="phpdocumentor-argument-list">
  294. <dt class="phpdocumentor-argument-list__entry">
  295. <span class="phpdocumentor-signature__argument__name">$x</span>
  296. : <span class="phpdocumentor-signature__argument__return-type">float</span>
  297. </dt>
  298. <dd class="phpdocumentor-argument-list__definition">
  299. <section class="phpdocumentor-description"></section>
  300. </dd>
  301. <dt class="phpdocumentor-argument-list__entry">
  302. <span class="phpdocumentor-signature__argument__name">$y</span>
  303. : <span class="phpdocumentor-signature__argument__return-type">float</span>
  304. </dt>
  305. <dd class="phpdocumentor-argument-list__definition">
  306. <section class="phpdocumentor-description"></section>
  307. </dd>
  308. <dt class="phpdocumentor-argument-list__entry">
  309. <span class="phpdocumentor-signature__argument__name">$estimatedModuleSize</span>
  310. : <span class="phpdocumentor-signature__argument__return-type">float</span>
  311. </dt>
  312. <dd class="phpdocumentor-argument-list__definition">
  313. <section class="phpdocumentor-description"></section>
  314. </dd>
  315. </dl>
  316. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  317. <span class="phpdocumentor-signature__response_type">mixed</span>
  318. &mdash;
  319. </article>
  320. <article
  321. class="phpdocumentor-element
  322. -method
  323. -public
  324. "
  325. >
  326. <h4 class="phpdocumentor-element__name" id="method_aboutEquals">
  327. aboutEquals()
  328. <a href="classes/chillerlan-QRCode-Detector-ResultPoint.html#method_aboutEquals" class="headerlink"><i class="fas fa-link"></i></a>
  329. </h4>
  330. <aside class="phpdocumentor-element-found-in">
  331. <abbr class="phpdocumentor-element-found-in__file" title="src/Detector/ResultPoint.php"><a href="files/src-detector-resultpoint.html"><abbr title="src/Detector/ResultPoint.php">ResultPoint.php</abbr></a></abbr>
  332. :
  333. <span class="phpdocumentor-element-found-in__line">62</span>
  334. </aside>
  335. <p class="phpdocumentor-summary">Determines if this finder pattern &quot;about equals&quot; a finder pattern at the stated
  336. position and size -- meaning, it is at nearly the same center with nearly the same size.</p>
  337. <code class="phpdocumentor-code phpdocumentor-signature ">
  338. <span class="phpdocumentor-signature__visibility">public</span>
  339. <span class="phpdocumentor-signature__name">aboutEquals</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">float&nbsp;</span><span class="phpdocumentor-signature__argument__name">$moduleSize</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">float&nbsp;</span><span class="phpdocumentor-signature__argument__name">$i</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">float&nbsp;</span><span class="phpdocumentor-signature__argument__name">$j</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">bool</span></code>
  340. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  341. <dl class="phpdocumentor-argument-list">
  342. <dt class="phpdocumentor-argument-list__entry">
  343. <span class="phpdocumentor-signature__argument__name">$moduleSize</span>
  344. : <span class="phpdocumentor-signature__argument__return-type">float</span>
  345. </dt>
  346. <dd class="phpdocumentor-argument-list__definition">
  347. <section class="phpdocumentor-description"></section>
  348. </dd>
  349. <dt class="phpdocumentor-argument-list__entry">
  350. <span class="phpdocumentor-signature__argument__name">$i</span>
  351. : <span class="phpdocumentor-signature__argument__return-type">float</span>
  352. </dt>
  353. <dd class="phpdocumentor-argument-list__definition">
  354. <section class="phpdocumentor-description"></section>
  355. </dd>
  356. <dt class="phpdocumentor-argument-list__entry">
  357. <span class="phpdocumentor-signature__argument__name">$j</span>
  358. : <span class="phpdocumentor-signature__argument__return-type">float</span>
  359. </dt>
  360. <dd class="phpdocumentor-argument-list__definition">
  361. <section class="phpdocumentor-description"></section>
  362. </dd>
  363. </dl>
  364. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  365. <span class="phpdocumentor-signature__response_type">bool</span>
  366. &mdash;
  367. </article>
  368. <article
  369. class="phpdocumentor-element
  370. -method
  371. -public
  372. "
  373. >
  374. <h4 class="phpdocumentor-element__name" id="method_combineEstimate">
  375. combineEstimate()
  376. <a href="classes/chillerlan-QRCode-Detector-AlignmentPattern.html#method_combineEstimate" class="headerlink"><i class="fas fa-link"></i></a>
  377. </h4>
  378. <aside class="phpdocumentor-element-found-in">
  379. <abbr class="phpdocumentor-element-found-in__file" title="src/Detector/AlignmentPattern.php"><a href="files/src-detector-alignmentpattern.html"><abbr title="src/Detector/AlignmentPattern.php">AlignmentPattern.php</abbr></a></abbr>
  380. :
  381. <span class="phpdocumentor-element-found-in__line">26</span>
  382. </aside>
  383. <p class="phpdocumentor-summary">Combines this object&#039;s current estimate of a finder pattern position and module size
  384. with a new estimate. It returns a new FinderPattern containing an average of the two.</p>
  385. <code class="phpdocumentor-code phpdocumentor-signature ">
  386. <span class="phpdocumentor-signature__visibility">public</span>
  387. <span class="phpdocumentor-signature__name">combineEstimate</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">float&nbsp;</span><span class="phpdocumentor-signature__argument__name">$i</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">float&nbsp;</span><span class="phpdocumentor-signature__argument__name">$j</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">float&nbsp;</span><span class="phpdocumentor-signature__argument__name">$newModuleSize</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">self</span></code>
  388. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  389. <dl class="phpdocumentor-argument-list">
  390. <dt class="phpdocumentor-argument-list__entry">
  391. <span class="phpdocumentor-signature__argument__name">$i</span>
  392. : <span class="phpdocumentor-signature__argument__return-type">float</span>
  393. </dt>
  394. <dd class="phpdocumentor-argument-list__definition">
  395. <section class="phpdocumentor-description"></section>
  396. </dd>
  397. <dt class="phpdocumentor-argument-list__entry">
  398. <span class="phpdocumentor-signature__argument__name">$j</span>
  399. : <span class="phpdocumentor-signature__argument__return-type">float</span>
  400. </dt>
  401. <dd class="phpdocumentor-argument-list__definition">
  402. <section class="phpdocumentor-description"></section>
  403. </dd>
  404. <dt class="phpdocumentor-argument-list__entry">
  405. <span class="phpdocumentor-signature__argument__name">$newModuleSize</span>
  406. : <span class="phpdocumentor-signature__argument__return-type">float</span>
  407. </dt>
  408. <dd class="phpdocumentor-argument-list__definition">
  409. <section class="phpdocumentor-description"></section>
  410. </dd>
  411. </dl>
  412. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  413. <span class="phpdocumentor-signature__response_type">self</span>
  414. &mdash;
  415. </article>
  416. <article
  417. class="phpdocumentor-element
  418. -method
  419. -public
  420. "
  421. >
  422. <h4 class="phpdocumentor-element__name" id="method_getEstimatedModuleSize">
  423. getEstimatedModuleSize()
  424. <a href="classes/chillerlan-QRCode-Detector-ResultPoint.html#method_getEstimatedModuleSize" class="headerlink"><i class="fas fa-link"></i></a>
  425. </h4>
  426. <aside class="phpdocumentor-element-found-in">
  427. <abbr class="phpdocumentor-element-found-in__file" title="src/Detector/ResultPoint.php"><a href="files/src-detector-resultpoint.html"><abbr title="src/Detector/ResultPoint.php">ResultPoint.php</abbr></a></abbr>
  428. :
  429. <span class="phpdocumentor-element-found-in__line">54</span>
  430. </aside>
  431. <code class="phpdocumentor-code phpdocumentor-signature ">
  432. <span class="phpdocumentor-signature__visibility">public</span>
  433. <span class="phpdocumentor-signature__name">getEstimatedModuleSize</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">float</span></code>
  434. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  435. <span class="phpdocumentor-signature__response_type">float</span>
  436. &mdash;
  437. </article>
  438. <article
  439. class="phpdocumentor-element
  440. -method
  441. -public
  442. "
  443. >
  444. <h4 class="phpdocumentor-element__name" id="method_getX">
  445. getX()
  446. <a href="classes/chillerlan-QRCode-Detector-ResultPoint.html#method_getX" class="headerlink"><i class="fas fa-link"></i></a>
  447. </h4>
  448. <aside class="phpdocumentor-element-found-in">
  449. <abbr class="phpdocumentor-element-found-in__file" title="src/Detector/ResultPoint.php"><a href="files/src-detector-resultpoint.html"><abbr title="src/Detector/ResultPoint.php">ResultPoint.php</abbr></a></abbr>
  450. :
  451. <span class="phpdocumentor-element-found-in__line">40</span>
  452. </aside>
  453. <code class="phpdocumentor-code phpdocumentor-signature ">
  454. <span class="phpdocumentor-signature__visibility">public</span>
  455. <span class="phpdocumentor-signature__name">getX</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">float</span></code>
  456. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  457. <span class="phpdocumentor-signature__response_type">float</span>
  458. &mdash;
  459. </article>
  460. <article
  461. class="phpdocumentor-element
  462. -method
  463. -public
  464. "
  465. >
  466. <h4 class="phpdocumentor-element__name" id="method_getY">
  467. getY()
  468. <a href="classes/chillerlan-QRCode-Detector-ResultPoint.html#method_getY" class="headerlink"><i class="fas fa-link"></i></a>
  469. </h4>
  470. <aside class="phpdocumentor-element-found-in">
  471. <abbr class="phpdocumentor-element-found-in__file" title="src/Detector/ResultPoint.php"><a href="files/src-detector-resultpoint.html"><abbr title="src/Detector/ResultPoint.php">ResultPoint.php</abbr></a></abbr>
  472. :
  473. <span class="phpdocumentor-element-found-in__line">47</span>
  474. </aside>
  475. <code class="phpdocumentor-code phpdocumentor-signature ">
  476. <span class="phpdocumentor-signature__visibility">public</span>
  477. <span class="phpdocumentor-signature__name">getY</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">float</span></code>
  478. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  479. <span class="phpdocumentor-signature__response_type">float</span>
  480. &mdash;
  481. </article>
  482. </section>
  483. <script type="text/javascript">
  484. function loadExternalCodeSnippets(line) {
  485. Array.prototype.slice.call(document.querySelectorAll('pre[data-src]')).forEach((pre) => {
  486. var src = pre.getAttribute('data-src').replace( /\\/g, '/');
  487. var extension = (src.match(/\.(\w+)$/) || [, ''])[1];
  488. var language = 'php';
  489. var code = document.createElement('code');
  490. code.className = 'language-' + language;
  491. pre.textContent = '';
  492. pre.setAttribute('data-line', line)
  493. code.textContent = 'Loading…';
  494. pre.appendChild(code);
  495. var xhr = new XMLHttpRequest();
  496. xhr.open('GET', src, true);
  497. xhr.onreadystatechange = function () {
  498. if (xhr.readyState == 4) {
  499. if (xhr.status < 400 && xhr.responseText) {
  500. code.textContent = xhr.responseText;
  501. Prism.highlightElement(code);
  502. }
  503. else if (xhr.status >= 400) {
  504. code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
  505. }
  506. else {
  507. code.textContent = '✖ Error: File does not exist, is empty or trying to view from localhost';
  508. }
  509. }
  510. };
  511. xhr.send(null);
  512. });
  513. }
  514. var modals = document.querySelectorAll("[data-modal]");
  515. modals.forEach(function (trigger) {
  516. trigger.addEventListener("click", function (event) {
  517. //event.preventDefault();
  518. const modal = document.getElementById(trigger.dataset.modal);
  519. modal.classList.add("phpdocumentor-modal__open");
  520. loadExternalCodeSnippets(trigger.dataset.line)
  521. const exits = modal.querySelectorAll("[data-exit-button]");
  522. exits.forEach(function (exit) {
  523. exit.addEventListener("click", function (event) {
  524. event.preventDefault();
  525. modal.classList.remove("phpdocumentor-modal__open");
  526. });
  527. });
  528. });
  529. });
  530. </script>
  531. </article>
  532. <section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
  533. <section class="phpdocumentor-search-results__dialog">
  534. <header class="phpdocumentor-search-results__header">
  535. <h2 class="phpdocumentor-search-results__title">Search results</h2>
  536. <button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
  537. </header>
  538. <section class="phpdocumentor-search-results__body">
  539. <ul class="phpdocumentor-search-results__entries"></ul>
  540. </section>
  541. </section>
  542. </section>
  543. </div>
  544. </div>
  545. <a href="classes/chillerlan-QRCode-Detector-AlignmentPattern.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
  546. </main>
  547. <script>
  548. cssVars({});
  549. </script>
  550. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
  551. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
  552. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
  553. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script>
  554. </body>
  555. </html>