chillerlan-QRCode-Detector-AlignmentPattern.html 32 KB

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