chillerlan-QRCode-Detector-FinderPattern.html 56 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172
  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=Open+Sans:wght@100;200;300;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/template.js"></script>
  22. <script src="js/search.js"></script>
  23. <script defer src="js/searchIndex.js"></script>
  24. </head>
  25. <body id="top">
  26. <header class="phpdocumentor-header phpdocumentor-section">
  27. <h1 class="phpdocumentor-title"><a href="" class="phpdocumentor-title__link">Documentation</a></h1>
  28. <input class="phpdocumentor-header__menu-button" type="checkbox" id="menu-button" name="menu-button" />
  29. <label class="phpdocumentor-header__menu-icon" for="menu-button">
  30. <i class="fas fa-bars"></i>
  31. </label>
  32. <section data-search-form class="phpdocumentor-search">
  33. <label>
  34. <span class="visually-hidden">Search for</span>
  35. <svg class="phpdocumentor-search__icon" width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
  36. <circle cx="7.5" cy="7.5" r="6.5" stroke="currentColor" stroke-width="2"/>
  37. <line x1="12.4892" y1="12.2727" x2="19.1559" y2="18.9393" stroke="currentColor" stroke-width="3"/>
  38. </svg>
  39. <input type="search" class="phpdocumentor-field phpdocumentor-search__field" placeholder="Loading .." disabled />
  40. </label>
  41. </section>
  42. <nav class="phpdocumentor-topnav">
  43. <ul class="phpdocumentor-topnav__menu">
  44. <li class="phpdocumentor-topnav__menu-item -menu">
  45. <a href="https://php-qrcode.readthedocs.io">
  46. <span>
  47. User Manual
  48. </span>
  49. </a>
  50. </li>
  51. <li class="phpdocumentor-topnav__menu-item -social">
  52. <a href="https://github.com/chillerlan/php-qrcode">
  53. <span>
  54. <i class="fab fa-github"></i>
  55. </span>
  56. </a>
  57. </li>
  58. </ul>
  59. </nav>
  60. </header>
  61. <main class="phpdocumentor">
  62. <div class="phpdocumentor-section">
  63. <input class="phpdocumentor-sidebar__menu-button" type="checkbox" id="sidebar-button" name="sidebar-button" />
  64. <label class="phpdocumentor-sidebar__menu-icon" for="sidebar-button">
  65. Menu
  66. </label>
  67. <aside class="phpdocumentor-column -three phpdocumentor-sidebar">
  68. <section class="phpdocumentor-sidebar__category">
  69. <h2 class="phpdocumentor-sidebar__category-header">Namespaces</h2>
  70. <h4 class="phpdocumentor-sidebar__root-namespace">
  71. <a href="namespaces/chillerlan.html" class="">chillerlan</a>
  72. </h4>
  73. <ul class="phpdocumentor-list">
  74. <li>
  75. <a href="namespaces/chillerlan-qrcode.html" class="">QRCode</a>
  76. </li>
  77. <li>
  78. <a href="namespaces/chillerlan-qrcodetest.html" class="">QRCodeTest</a>
  79. </li>
  80. </ul>
  81. </section>
  82. <section class="phpdocumentor-sidebar__category">
  83. <h2 class="phpdocumentor-sidebar__category-header">Packages</h2>
  84. <h4 class="phpdocumentor-sidebar__root-namespace">
  85. <a href="packages/Application.html" class="">Application</a>
  86. </h4>
  87. </section>
  88. <section class="phpdocumentor-sidebar__category">
  89. <h2 class="phpdocumentor-sidebar__category-header">Reports</h2>
  90. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/deprecated.html">Deprecated</a></h3>
  91. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/errors.html">Errors</a></h3>
  92. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/markers.html">Markers</a></h3>
  93. </section>
  94. <section class="phpdocumentor-sidebar__category">
  95. <h2 class="phpdocumentor-sidebar__category-header">Indices</h2>
  96. <h3 class="phpdocumentor-sidebar__root-package"><a href="indices/files.html">Files</a></h3>
  97. </section>
  98. </aside>
  99. <div class="phpdocumentor-column -nine phpdocumentor-content">
  100. <section>
  101. <ul class="phpdocumentor-breadcrumbs">
  102. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan.html">chillerlan</a></li>
  103. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan-qrcode.html">QRCode</a></li>
  104. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan-qrcode-detector.html">Detector</a></li>
  105. </ul>
  106. <article class="phpdocumentor-element -class">
  107. <h2 class="phpdocumentor-content__title">
  108. FinderPattern
  109. <span class="phpdocumentor-element__extends">
  110. extends <a href="classes/chillerlan-QRCode-Detector-ResultPoint.html"><abbr title="\chillerlan\QRCode\Detector\ResultPoint">ResultPoint</abbr></a>
  111. </span>
  112. <div class="phpdocumentor-element__package">
  113. in package
  114. <ul class="phpdocumentor-breadcrumbs">
  115. <li class="phpdocumentor-breadcrumb"><a href="packages/Application.html">Application</a></li>
  116. </ul>
  117. </div>
  118. </h2>
  119. <div class="phpdocumentor-label-line">
  120. <div class="phpdocumentor-label phpdocumentor-label--success"><span>Final</span><span>Yes</span></div>
  121. </div>
  122. <aside class="phpdocumentor-element-found-in">
  123. <abbr class="phpdocumentor-element-found-in__file" title="src/Detector/FinderPattern.php"><a href="files/src-detector-finderpattern.html"><abbr title="src/Detector/FinderPattern.php">FinderPattern.php</abbr></a></abbr>
  124. :
  125. <span class="phpdocumentor-element-found-in__line">23</span>
  126. </aside>
  127. <p class="phpdocumentor-summary">Encapsulates a finder pattern, which are the three square patterns found in
  128. the corners of QR Codes. It also encapsulates a count of similar finder patterns,
  129. as a convenience to the finder&#039;s bookkeeping.</p>
  130. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  131. Tags
  132. <a href="classes/chillerlan-QRCode-Detector-FinderPattern.html#tags" class="headerlink"><i class="fas fa-link"></i></a>
  133. </h5>
  134. <dl class="phpdocumentor-tag-list">
  135. <dt class="phpdocumentor-tag-list__entry">
  136. <span class="phpdocumentor-tag__name">author</span>
  137. </dt>
  138. <dd class="phpdocumentor-tag-list__definition">
  139. <section class="phpdocumentor-description"><p>Sean Owen</p>
  140. </section>
  141. </dd>
  142. </dl>
  143. <h3 id="toc">
  144. Table of Contents
  145. <a href="classes/chillerlan-QRCode-Detector-FinderPattern.html#toc" class="headerlink"><i class="fas fa-link"></i></a>
  146. </h3>
  147. <h4 id="toc-properties">
  148. Properties
  149. <a href="classes/chillerlan-QRCode-Detector-FinderPattern.html#toc-properties" class="headerlink"><i class="fas fa-link"></i></a>
  150. </h4>
  151. <dl class="phpdocumentor-table-of-contents">
  152. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  153. <a href="classes/chillerlan-QRCode-Detector-ResultPoint.html#property_estimatedModuleSize">$estimatedModuleSize</a>
  154. <span>
  155. &nbsp;: float </span>
  156. </dt>
  157. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  158. <a href="classes/chillerlan-QRCode-Detector-ResultPoint.html#property_x">$x</a>
  159. <span>
  160. &nbsp;: float </span>
  161. </dt>
  162. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  163. <a href="classes/chillerlan-QRCode-Detector-ResultPoint.html#property_y">$y</a>
  164. <span>
  165. &nbsp;: float </span>
  166. </dt>
  167. <dt class="phpdocumentor-table-of-contents__entry -property -private">
  168. <a href="classes/chillerlan-QRCode-Detector-FinderPattern.html#property_count">$count</a>
  169. <span>
  170. &nbsp;: int </span>
  171. </dt>
  172. </dl>
  173. <h4 id="toc-methods">
  174. Methods
  175. <a href="classes/chillerlan-QRCode-Detector-FinderPattern.html#toc-methods" class="headerlink"><i class="fas fa-link"></i></a>
  176. </h4>
  177. <dl class="phpdocumentor-table-of-contents">
  178. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  179. <a href="classes/chillerlan-QRCode-Detector-FinderPattern.html#method___construct">__construct()</a>
  180. <span>
  181. &nbsp;: mixed </span>
  182. </dt>
  183. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  184. <a href="classes/chillerlan-QRCode-Detector-ResultPoint.html#method_aboutEquals">aboutEquals()</a>
  185. <span>
  186. &nbsp;: bool </span>
  187. </dt>
  188. <dd>Determines if this finder pattern &quot;about equals&quot; a finder pattern at the stated
  189. position and size -- meaning, it is at nearly the same center with nearly the same size.</dd>
  190. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  191. <a href="classes/chillerlan-QRCode-Detector-FinderPattern.html#method_combineEstimate">combineEstimate()</a>
  192. <span>
  193. &nbsp;: self </span>
  194. </dt>
  195. <dd>Combines this object&#039;s current estimate of a finder pattern position and module size
  196. with a new estimate. It returns a new FinderPattern containing a weighted average
  197. based on count.</dd>
  198. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  199. <a href="classes/chillerlan-QRCode-Detector-FinderPattern.html#method_distance">distance()</a>
  200. <span>
  201. &nbsp;: float </span>
  202. </dt>
  203. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  204. <a href="classes/chillerlan-QRCode-Detector-FinderPattern.html#method_getCount">getCount()</a>
  205. <span>
  206. &nbsp;: int </span>
  207. </dt>
  208. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  209. <a href="classes/chillerlan-QRCode-Detector-FinderPattern.html#method_getDistance">getDistance()</a>
  210. <span>
  211. &nbsp;: float </span>
  212. </dt>
  213. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  214. <a href="classes/chillerlan-QRCode-Detector-ResultPoint.html#method_getEstimatedModuleSize">getEstimatedModuleSize()</a>
  215. <span>
  216. &nbsp;: float </span>
  217. </dt>
  218. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  219. <a href="classes/chillerlan-QRCode-Detector-FinderPattern.html#method_getSquaredDistance">getSquaredDistance()</a>
  220. <span>
  221. &nbsp;: float </span>
  222. </dt>
  223. <dd>Get square of distance between a and b.</dd>
  224. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  225. <a href="classes/chillerlan-QRCode-Detector-ResultPoint.html#method_getX">getX()</a>
  226. <span>
  227. &nbsp;: float </span>
  228. </dt>
  229. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  230. <a href="classes/chillerlan-QRCode-Detector-ResultPoint.html#method_getY">getY()</a>
  231. <span>
  232. &nbsp;: float </span>
  233. </dt>
  234. <dt class="phpdocumentor-table-of-contents__entry -method -private">
  235. <a href="classes/chillerlan-QRCode-Detector-FinderPattern.html#method_squaredDistance">squaredDistance()</a>
  236. <span>
  237. &nbsp;: float </span>
  238. </dt>
  239. </dl>
  240. <section class="phpdocumentor-properties">
  241. <h3 class="phpdocumentor-elements__header" id="properties">
  242. Properties
  243. <a href="classes/chillerlan-QRCode-Detector-FinderPattern.html#properties" class="headerlink"><i class="fas fa-link"></i></a>
  244. </h3>
  245. <article
  246. class="
  247. phpdocumentor-element
  248. -property
  249. -protected
  250. "
  251. >
  252. <h4 class="phpdocumentor-element__name" id="property_estimatedModuleSize">
  253. $estimatedModuleSize
  254. <a href="classes/chillerlan-QRCode-Detector-ResultPoint.html#property_estimatedModuleSize" class="headerlink"><i class="fas fa-link"></i></a>
  255. <span class="phpdocumentor-element__modifiers">
  256. </span>
  257. </h4>
  258. <aside class="phpdocumentor-element-found-in">
  259. <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>
  260. :
  261. <span class="phpdocumentor-element-found-in__line">26</span>
  262. </aside>
  263. <code class="phpdocumentor-code phpdocumentor-signature ">
  264. <span class="phpdocumentor-signature__visibility">protected</span>
  265. <span class="phpdocumentor-signature__type">float</span>
  266. <span class="phpdocumentor-signature__name">$estimatedModuleSize</span>
  267. </code>
  268. </article>
  269. <article
  270. class="
  271. phpdocumentor-element
  272. -property
  273. -protected
  274. "
  275. >
  276. <h4 class="phpdocumentor-element__name" id="property_x">
  277. $x
  278. <a href="classes/chillerlan-QRCode-Detector-ResultPoint.html#property_x" class="headerlink"><i class="fas fa-link"></i></a>
  279. <span class="phpdocumentor-element__modifiers">
  280. </span>
  281. </h4>
  282. <aside class="phpdocumentor-element-found-in">
  283. <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>
  284. :
  285. <span class="phpdocumentor-element-found-in__line">24</span>
  286. </aside>
  287. <code class="phpdocumentor-code phpdocumentor-signature ">
  288. <span class="phpdocumentor-signature__visibility">protected</span>
  289. <span class="phpdocumentor-signature__type">float</span>
  290. <span class="phpdocumentor-signature__name">$x</span>
  291. </code>
  292. </article>
  293. <article
  294. class="
  295. phpdocumentor-element
  296. -property
  297. -protected
  298. "
  299. >
  300. <h4 class="phpdocumentor-element__name" id="property_y">
  301. $y
  302. <a href="classes/chillerlan-QRCode-Detector-ResultPoint.html#property_y" class="headerlink"><i class="fas fa-link"></i></a>
  303. <span class="phpdocumentor-element__modifiers">
  304. </span>
  305. </h4>
  306. <aside class="phpdocumentor-element-found-in">
  307. <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>
  308. :
  309. <span class="phpdocumentor-element-found-in__line">25</span>
  310. </aside>
  311. <code class="phpdocumentor-code phpdocumentor-signature ">
  312. <span class="phpdocumentor-signature__visibility">protected</span>
  313. <span class="phpdocumentor-signature__type">float</span>
  314. <span class="phpdocumentor-signature__name">$y</span>
  315. </code>
  316. </article>
  317. <article
  318. class="
  319. phpdocumentor-element
  320. -property
  321. -private
  322. "
  323. >
  324. <h4 class="phpdocumentor-element__name" id="property_count">
  325. $count
  326. <a href="classes/chillerlan-QRCode-Detector-FinderPattern.html#property_count" class="headerlink"><i class="fas fa-link"></i></a>
  327. <span class="phpdocumentor-element__modifiers">
  328. </span>
  329. </h4>
  330. <aside class="phpdocumentor-element-found-in">
  331. <abbr class="phpdocumentor-element-found-in__file" title="src/Detector/FinderPattern.php"><a href="files/src-detector-finderpattern.html"><abbr title="src/Detector/FinderPattern.php">FinderPattern.php</abbr></a></abbr>
  332. :
  333. <span class="phpdocumentor-element-found-in__line">25</span>
  334. </aside>
  335. <code class="phpdocumentor-code phpdocumentor-signature ">
  336. <span class="phpdocumentor-signature__visibility">private</span>
  337. <span class="phpdocumentor-signature__type">int</span>
  338. <span class="phpdocumentor-signature__name">$count</span>
  339. </code>
  340. </article>
  341. </section>
  342. <section class="phpdocumentor-methods">
  343. <h3 class="phpdocumentor-elements__header" id="methods">
  344. Methods
  345. <a href="classes/chillerlan-QRCode-Detector-FinderPattern.html#methods" class="headerlink"><i class="fas fa-link"></i></a>
  346. </h3>
  347. <article
  348. class="phpdocumentor-element
  349. -method
  350. -public
  351. "
  352. >
  353. <h4 class="phpdocumentor-element__name" id="method___construct">
  354. __construct()
  355. <a href="classes/chillerlan-QRCode-Detector-FinderPattern.html#method___construct" class="headerlink"><i class="fas fa-link"></i></a>
  356. </h4>
  357. <aside class="phpdocumentor-element-found-in">
  358. <abbr class="phpdocumentor-element-found-in__file" title="src/Detector/FinderPattern.php"><a href="files/src-detector-finderpattern.html"><abbr title="src/Detector/FinderPattern.php">FinderPattern.php</abbr></a></abbr>
  359. :
  360. <span class="phpdocumentor-element-found-in__line">30</span>
  361. </aside>
  362. <code class="phpdocumentor-code phpdocumentor-signature ">
  363. <span class="phpdocumentor-signature__visibility">public</span>
  364. <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">$posX</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">$posY</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 class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$count</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">null</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">mixed</span></code>
  365. <div class="phpdocumentor-label-line">
  366. </div>
  367. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  368. <dl class="phpdocumentor-argument-list">
  369. <dt class="phpdocumentor-argument-list__entry">
  370. <span class="phpdocumentor-signature__argument__name">$posX</span>
  371. : <span class="phpdocumentor-signature__argument__return-type">float</span>
  372. </dt>
  373. <dd class="phpdocumentor-argument-list__definition">
  374. </dd>
  375. <dt class="phpdocumentor-argument-list__entry">
  376. <span class="phpdocumentor-signature__argument__name">$posY</span>
  377. : <span class="phpdocumentor-signature__argument__return-type">float</span>
  378. </dt>
  379. <dd class="phpdocumentor-argument-list__definition">
  380. </dd>
  381. <dt class="phpdocumentor-argument-list__entry">
  382. <span class="phpdocumentor-signature__argument__name">$estimatedModuleSize</span>
  383. : <span class="phpdocumentor-signature__argument__return-type">float</span>
  384. </dt>
  385. <dd class="phpdocumentor-argument-list__definition">
  386. </dd>
  387. <dt class="phpdocumentor-argument-list__entry">
  388. <span class="phpdocumentor-signature__argument__name">$count</span>
  389. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  390. = <span class="phpdocumentor-signature__argument__default-value">null</span> </dt>
  391. <dd class="phpdocumentor-argument-list__definition">
  392. </dd>
  393. </dl>
  394. </article>
  395. <article
  396. class="phpdocumentor-element
  397. -method
  398. -public
  399. "
  400. >
  401. <h4 class="phpdocumentor-element__name" id="method_aboutEquals">
  402. aboutEquals()
  403. <a href="classes/chillerlan-QRCode-Detector-ResultPoint.html#method_aboutEquals" class="headerlink"><i class="fas fa-link"></i></a>
  404. </h4>
  405. <aside class="phpdocumentor-element-found-in">
  406. <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>
  407. :
  408. <span class="phpdocumentor-element-found-in__line">62</span>
  409. </aside>
  410. <p class="phpdocumentor-summary">Determines if this finder pattern &quot;about equals&quot; a finder pattern at the stated
  411. position and size -- meaning, it is at nearly the same center with nearly the same size.</p>
  412. <code class="phpdocumentor-code phpdocumentor-signature ">
  413. <span class="phpdocumentor-signature__visibility">public</span>
  414. <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>
  415. <div class="phpdocumentor-label-line">
  416. </div>
  417. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  418. <dl class="phpdocumentor-argument-list">
  419. <dt class="phpdocumentor-argument-list__entry">
  420. <span class="phpdocumentor-signature__argument__name">$moduleSize</span>
  421. : <span class="phpdocumentor-signature__argument__return-type">float</span>
  422. </dt>
  423. <dd class="phpdocumentor-argument-list__definition">
  424. </dd>
  425. <dt class="phpdocumentor-argument-list__entry">
  426. <span class="phpdocumentor-signature__argument__name">$i</span>
  427. : <span class="phpdocumentor-signature__argument__return-type">float</span>
  428. </dt>
  429. <dd class="phpdocumentor-argument-list__definition">
  430. </dd>
  431. <dt class="phpdocumentor-argument-list__entry">
  432. <span class="phpdocumentor-signature__argument__name">$j</span>
  433. : <span class="phpdocumentor-signature__argument__return-type">float</span>
  434. </dt>
  435. <dd class="phpdocumentor-argument-list__definition">
  436. </dd>
  437. </dl>
  438. <section>
  439. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  440. <span class="phpdocumentor-signature__response_type">bool</span>
  441. </section>
  442. </article>
  443. <article
  444. class="phpdocumentor-element
  445. -method
  446. -public
  447. "
  448. >
  449. <h4 class="phpdocumentor-element__name" id="method_combineEstimate">
  450. combineEstimate()
  451. <a href="classes/chillerlan-QRCode-Detector-FinderPattern.html#method_combineEstimate" class="headerlink"><i class="fas fa-link"></i></a>
  452. </h4>
  453. <aside class="phpdocumentor-element-found-in">
  454. <abbr class="phpdocumentor-element-found-in__file" title="src/Detector/FinderPattern.php"><a href="files/src-detector-finderpattern.html"><abbr title="src/Detector/FinderPattern.php">FinderPattern.php</abbr></a></abbr>
  455. :
  456. <span class="phpdocumentor-element-found-in__line">64</span>
  457. </aside>
  458. <p class="phpdocumentor-summary">Combines this object&#039;s current estimate of a finder pattern position and module size
  459. with a new estimate. It returns a new FinderPattern containing a weighted average
  460. based on count.</p>
  461. <code class="phpdocumentor-code phpdocumentor-signature ">
  462. <span class="phpdocumentor-signature__visibility">public</span>
  463. <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>
  464. <div class="phpdocumentor-label-line">
  465. </div>
  466. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  467. <dl class="phpdocumentor-argument-list">
  468. <dt class="phpdocumentor-argument-list__entry">
  469. <span class="phpdocumentor-signature__argument__name">$i</span>
  470. : <span class="phpdocumentor-signature__argument__return-type">float</span>
  471. </dt>
  472. <dd class="phpdocumentor-argument-list__definition">
  473. </dd>
  474. <dt class="phpdocumentor-argument-list__entry">
  475. <span class="phpdocumentor-signature__argument__name">$j</span>
  476. : <span class="phpdocumentor-signature__argument__return-type">float</span>
  477. </dt>
  478. <dd class="phpdocumentor-argument-list__definition">
  479. </dd>
  480. <dt class="phpdocumentor-argument-list__entry">
  481. <span class="phpdocumentor-signature__argument__name">$newModuleSize</span>
  482. : <span class="phpdocumentor-signature__argument__return-type">float</span>
  483. </dt>
  484. <dd class="phpdocumentor-argument-list__definition">
  485. </dd>
  486. </dl>
  487. <section>
  488. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  489. <span class="phpdocumentor-signature__response_type">self</span>
  490. </section>
  491. </article>
  492. <article
  493. class="phpdocumentor-element
  494. -method
  495. -public
  496. -static "
  497. >
  498. <h4 class="phpdocumentor-element__name" id="method_distance">
  499. distance()
  500. <a href="classes/chillerlan-QRCode-Detector-FinderPattern.html#method_distance" class="headerlink"><i class="fas fa-link"></i></a>
  501. </h4>
  502. <aside class="phpdocumentor-element-found-in">
  503. <abbr class="phpdocumentor-element-found-in__file" title="src/Detector/FinderPattern.php"><a href="files/src-detector-finderpattern.html"><abbr title="src/Detector/FinderPattern.php">FinderPattern.php</abbr></a></abbr>
  504. :
  505. <span class="phpdocumentor-element-found-in__line">88</span>
  506. </aside>
  507. <code class="phpdocumentor-code phpdocumentor-signature ">
  508. <span class="phpdocumentor-signature__visibility">public</span>
  509. <span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__name">distance</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">float&nbsp;</span><span class="phpdocumentor-signature__argument__name">$aX</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">$aY</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">$bX</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">$bY</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">float</span></code>
  510. <div class="phpdocumentor-label-line">
  511. </div>
  512. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  513. <dl class="phpdocumentor-argument-list">
  514. <dt class="phpdocumentor-argument-list__entry">
  515. <span class="phpdocumentor-signature__argument__name">$aX</span>
  516. : <span class="phpdocumentor-signature__argument__return-type">float</span>
  517. </dt>
  518. <dd class="phpdocumentor-argument-list__definition">
  519. </dd>
  520. <dt class="phpdocumentor-argument-list__entry">
  521. <span class="phpdocumentor-signature__argument__name">$aY</span>
  522. : <span class="phpdocumentor-signature__argument__return-type">float</span>
  523. </dt>
  524. <dd class="phpdocumentor-argument-list__definition">
  525. </dd>
  526. <dt class="phpdocumentor-argument-list__entry">
  527. <span class="phpdocumentor-signature__argument__name">$bX</span>
  528. : <span class="phpdocumentor-signature__argument__return-type">float</span>
  529. </dt>
  530. <dd class="phpdocumentor-argument-list__definition">
  531. </dd>
  532. <dt class="phpdocumentor-argument-list__entry">
  533. <span class="phpdocumentor-signature__argument__name">$bY</span>
  534. : <span class="phpdocumentor-signature__argument__return-type">float</span>
  535. </dt>
  536. <dd class="phpdocumentor-argument-list__definition">
  537. </dd>
  538. </dl>
  539. <section>
  540. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  541. <span class="phpdocumentor-signature__response_type">float</span>
  542. </section>
  543. </article>
  544. <article
  545. class="phpdocumentor-element
  546. -method
  547. -public
  548. "
  549. >
  550. <h4 class="phpdocumentor-element__name" id="method_getCount">
  551. getCount()
  552. <a href="classes/chillerlan-QRCode-Detector-FinderPattern.html#method_getCount" class="headerlink"><i class="fas fa-link"></i></a>
  553. </h4>
  554. <aside class="phpdocumentor-element-found-in">
  555. <abbr class="phpdocumentor-element-found-in__file" title="src/Detector/FinderPattern.php"><a href="files/src-detector-finderpattern.html"><abbr title="src/Detector/FinderPattern.php">FinderPattern.php</abbr></a></abbr>
  556. :
  557. <span class="phpdocumentor-element-found-in__line">39</span>
  558. </aside>
  559. <code class="phpdocumentor-code phpdocumentor-signature ">
  560. <span class="phpdocumentor-signature__visibility">public</span>
  561. <span class="phpdocumentor-signature__name">getCount</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">int</span></code>
  562. <div class="phpdocumentor-label-line">
  563. </div>
  564. <section>
  565. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  566. <span class="phpdocumentor-signature__response_type">int</span>
  567. </section>
  568. </article>
  569. <article
  570. class="phpdocumentor-element
  571. -method
  572. -public
  573. "
  574. >
  575. <h4 class="phpdocumentor-element__name" id="method_getDistance">
  576. getDistance()
  577. <a href="classes/chillerlan-QRCode-Detector-FinderPattern.html#method_getDistance" class="headerlink"><i class="fas fa-link"></i></a>
  578. </h4>
  579. <aside class="phpdocumentor-element-found-in">
  580. <abbr class="phpdocumentor-element-found-in__file" title="src/Detector/FinderPattern.php"><a href="files/src-detector-finderpattern.html"><abbr title="src/Detector/FinderPattern.php">FinderPattern.php</abbr></a></abbr>
  581. :
  582. <span class="phpdocumentor-element-found-in__line">48</span>
  583. </aside>
  584. <code class="phpdocumentor-code phpdocumentor-signature ">
  585. <span class="phpdocumentor-signature__visibility">public</span>
  586. <span class="phpdocumentor-signature__name">getDistance</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Detector-FinderPattern.html"><abbr title="\chillerlan\QRCode\Detector\FinderPattern">FinderPattern</abbr></a>&nbsp;</span><span class="phpdocumentor-signature__argument__name">$b</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">float</span></code>
  587. <div class="phpdocumentor-label-line">
  588. </div>
  589. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  590. <dl class="phpdocumentor-argument-list">
  591. <dt class="phpdocumentor-argument-list__entry">
  592. <span class="phpdocumentor-signature__argument__name">$b</span>
  593. : <span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Detector-FinderPattern.html"><abbr title="\chillerlan\QRCode\Detector\FinderPattern">FinderPattern</abbr></a></span>
  594. </dt>
  595. <dd class="phpdocumentor-argument-list__definition">
  596. <section class="phpdocumentor-description"><p>second pattern</p>
  597. </section>
  598. </dd>
  599. </dl>
  600. <section>
  601. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  602. <span class="phpdocumentor-signature__response_type">float</span>
  603. &mdash;
  604. <section class="phpdocumentor-description"><p>distance between two points</p>
  605. </section>
  606. </section>
  607. </article>
  608. <article
  609. class="phpdocumentor-element
  610. -method
  611. -public
  612. "
  613. >
  614. <h4 class="phpdocumentor-element__name" id="method_getEstimatedModuleSize">
  615. getEstimatedModuleSize()
  616. <a href="classes/chillerlan-QRCode-Detector-ResultPoint.html#method_getEstimatedModuleSize" class="headerlink"><i class="fas fa-link"></i></a>
  617. </h4>
  618. <aside class="phpdocumentor-element-found-in">
  619. <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>
  620. :
  621. <span class="phpdocumentor-element-found-in__line">54</span>
  622. </aside>
  623. <code class="phpdocumentor-code phpdocumentor-signature ">
  624. <span class="phpdocumentor-signature__visibility">public</span>
  625. <span class="phpdocumentor-signature__name">getEstimatedModuleSize</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">float</span></code>
  626. <div class="phpdocumentor-label-line">
  627. </div>
  628. <section>
  629. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  630. <span class="phpdocumentor-signature__response_type">float</span>
  631. </section>
  632. </article>
  633. <article
  634. class="phpdocumentor-element
  635. -method
  636. -public
  637. "
  638. >
  639. <h4 class="phpdocumentor-element__name" id="method_getSquaredDistance">
  640. getSquaredDistance()
  641. <a href="classes/chillerlan-QRCode-Detector-FinderPattern.html#method_getSquaredDistance" class="headerlink"><i class="fas fa-link"></i></a>
  642. </h4>
  643. <aside class="phpdocumentor-element-found-in">
  644. <abbr class="phpdocumentor-element-found-in__file" title="src/Detector/FinderPattern.php"><a href="files/src-detector-finderpattern.html"><abbr title="src/Detector/FinderPattern.php">FinderPattern.php</abbr></a></abbr>
  645. :
  646. <span class="phpdocumentor-element-found-in__line">55</span>
  647. </aside>
  648. <p class="phpdocumentor-summary">Get square of distance between a and b.</p>
  649. <code class="phpdocumentor-code phpdocumentor-signature ">
  650. <span class="phpdocumentor-signature__visibility">public</span>
  651. <span class="phpdocumentor-signature__name">getSquaredDistance</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Detector-FinderPattern.html"><abbr title="\chillerlan\QRCode\Detector\FinderPattern">FinderPattern</abbr></a>&nbsp;</span><span class="phpdocumentor-signature__argument__name">$b</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">float</span></code>
  652. <div class="phpdocumentor-label-line">
  653. </div>
  654. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  655. <dl class="phpdocumentor-argument-list">
  656. <dt class="phpdocumentor-argument-list__entry">
  657. <span class="phpdocumentor-signature__argument__name">$b</span>
  658. : <span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Detector-FinderPattern.html"><abbr title="\chillerlan\QRCode\Detector\FinderPattern">FinderPattern</abbr></a></span>
  659. </dt>
  660. <dd class="phpdocumentor-argument-list__definition">
  661. </dd>
  662. </dl>
  663. <section>
  664. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  665. <span class="phpdocumentor-signature__response_type">float</span>
  666. </section>
  667. </article>
  668. <article
  669. class="phpdocumentor-element
  670. -method
  671. -public
  672. "
  673. >
  674. <h4 class="phpdocumentor-element__name" id="method_getX">
  675. getX()
  676. <a href="classes/chillerlan-QRCode-Detector-ResultPoint.html#method_getX" class="headerlink"><i class="fas fa-link"></i></a>
  677. </h4>
  678. <aside class="phpdocumentor-element-found-in">
  679. <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>
  680. :
  681. <span class="phpdocumentor-element-found-in__line">40</span>
  682. </aside>
  683. <code class="phpdocumentor-code phpdocumentor-signature ">
  684. <span class="phpdocumentor-signature__visibility">public</span>
  685. <span class="phpdocumentor-signature__name">getX</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">float</span></code>
  686. <div class="phpdocumentor-label-line">
  687. </div>
  688. <section>
  689. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  690. <span class="phpdocumentor-signature__response_type">float</span>
  691. </section>
  692. </article>
  693. <article
  694. class="phpdocumentor-element
  695. -method
  696. -public
  697. "
  698. >
  699. <h4 class="phpdocumentor-element__name" id="method_getY">
  700. getY()
  701. <a href="classes/chillerlan-QRCode-Detector-ResultPoint.html#method_getY" class="headerlink"><i class="fas fa-link"></i></a>
  702. </h4>
  703. <aside class="phpdocumentor-element-found-in">
  704. <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>
  705. :
  706. <span class="phpdocumentor-element-found-in__line">47</span>
  707. </aside>
  708. <code class="phpdocumentor-code phpdocumentor-signature ">
  709. <span class="phpdocumentor-signature__visibility">public</span>
  710. <span class="phpdocumentor-signature__name">getY</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">float</span></code>
  711. <div class="phpdocumentor-label-line">
  712. </div>
  713. <section>
  714. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  715. <span class="phpdocumentor-signature__response_type">float</span>
  716. </section>
  717. </article>
  718. <article
  719. class="phpdocumentor-element
  720. -method
  721. -private
  722. -static "
  723. >
  724. <h4 class="phpdocumentor-element__name" id="method_squaredDistance">
  725. squaredDistance()
  726. <a href="classes/chillerlan-QRCode-Detector-FinderPattern.html#method_squaredDistance" class="headerlink"><i class="fas fa-link"></i></a>
  727. </h4>
  728. <aside class="phpdocumentor-element-found-in">
  729. <abbr class="phpdocumentor-element-found-in__file" title="src/Detector/FinderPattern.php"><a href="files/src-detector-finderpattern.html"><abbr title="src/Detector/FinderPattern.php">FinderPattern.php</abbr></a></abbr>
  730. :
  731. <span class="phpdocumentor-element-found-in__line">78</span>
  732. </aside>
  733. <code class="phpdocumentor-code phpdocumentor-signature ">
  734. <span class="phpdocumentor-signature__visibility">private</span>
  735. <span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__name">squaredDistance</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">float&nbsp;</span><span class="phpdocumentor-signature__argument__name">$aX</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">$aY</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">$bX</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">$bY</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">float</span></code>
  736. <div class="phpdocumentor-label-line">
  737. </div>
  738. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  739. <dl class="phpdocumentor-argument-list">
  740. <dt class="phpdocumentor-argument-list__entry">
  741. <span class="phpdocumentor-signature__argument__name">$aX</span>
  742. : <span class="phpdocumentor-signature__argument__return-type">float</span>
  743. </dt>
  744. <dd class="phpdocumentor-argument-list__definition">
  745. </dd>
  746. <dt class="phpdocumentor-argument-list__entry">
  747. <span class="phpdocumentor-signature__argument__name">$aY</span>
  748. : <span class="phpdocumentor-signature__argument__return-type">float</span>
  749. </dt>
  750. <dd class="phpdocumentor-argument-list__definition">
  751. </dd>
  752. <dt class="phpdocumentor-argument-list__entry">
  753. <span class="phpdocumentor-signature__argument__name">$bX</span>
  754. : <span class="phpdocumentor-signature__argument__return-type">float</span>
  755. </dt>
  756. <dd class="phpdocumentor-argument-list__definition">
  757. </dd>
  758. <dt class="phpdocumentor-argument-list__entry">
  759. <span class="phpdocumentor-signature__argument__name">$bY</span>
  760. : <span class="phpdocumentor-signature__argument__return-type">float</span>
  761. </dt>
  762. <dd class="phpdocumentor-argument-list__definition">
  763. </dd>
  764. </dl>
  765. <section>
  766. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  767. <span class="phpdocumentor-signature__response_type">float</span>
  768. </section>
  769. </article>
  770. </section>
  771. <div class="phpdocumentor-modal" id="source-view">
  772. <div class="phpdocumentor-modal-bg" data-exit-button></div>
  773. <div class="phpdocumentor-modal-container">
  774. <div class="phpdocumentor-modal-content">
  775. <pre style="max-height: 500px; overflow-y: scroll" data-src="files/src/Detector/FinderPattern.php.txt" class="language-php line-numbers linkable-line-numbers"></pre>
  776. </div>
  777. <button data-exit-button class="phpdocumentor-modal__close">&times;</button>
  778. </div>
  779. </div>
  780. <script type="text/javascript">
  781. (function () {
  782. function loadExternalCodeSnippet(el, url, line) {
  783. Array.prototype.slice.call(el.querySelectorAll('pre[data-src]')).forEach((pre) => {
  784. const src = url || pre.getAttribute('data-src').replace(/\\/g, '/');
  785. const language = 'php';
  786. const code = document.createElement('code');
  787. code.className = 'language-' + language;
  788. pre.textContent = '';
  789. pre.setAttribute('data-line', line)
  790. code.textContent = 'Loading…';
  791. pre.appendChild(code);
  792. var xhr = new XMLHttpRequest();
  793. xhr.open('GET', src, true);
  794. xhr.onreadystatechange = function () {
  795. if (xhr.readyState !== 4) {
  796. return;
  797. }
  798. if (xhr.status < 400 && xhr.responseText) {
  799. code.textContent = xhr.responseText;
  800. Prism.highlightElement(code);
  801. return;
  802. }
  803. if (xhr.status === 404) {
  804. code.textContent = '✖ Error: File could not be found';
  805. return;
  806. }
  807. if (xhr.status >= 400) {
  808. code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
  809. return;
  810. }
  811. code.textContent = '✖ Error: An unknown error occurred';
  812. };
  813. xhr.send(null);
  814. });
  815. }
  816. const modalButtons = document.querySelectorAll("[data-modal]");
  817. const openedAsLocalFile = window.location.protocol === 'file:';
  818. if (modalButtons.length > 0 && openedAsLocalFile) {
  819. console.warn(
  820. 'Viewing the source code is unavailable because you are opening this page from the file:// scheme; ' +
  821. 'browsers block XHR requests when a page is opened this way'
  822. );
  823. }
  824. modalButtons.forEach(function (trigger) {
  825. if (openedAsLocalFile) {
  826. trigger.setAttribute("hidden", "hidden");
  827. }
  828. trigger.addEventListener("click", function (event) {
  829. event.preventDefault();
  830. const modal = document.getElementById(trigger.dataset.modal);
  831. if (!modal) {
  832. console.error(`Modal with id "${trigger.dataset.modal}" could not be found`);
  833. return;
  834. }
  835. modal.classList.add("phpdocumentor-modal__open");
  836. loadExternalCodeSnippet(modal, trigger.dataset.src || null, trigger.dataset.line)
  837. const exits = modal.querySelectorAll("[data-exit-button]");
  838. exits.forEach(function (exit) {
  839. exit.addEventListener("click", function (event) {
  840. event.preventDefault();
  841. modal.classList.remove("phpdocumentor-modal__open");
  842. });
  843. });
  844. });
  845. });
  846. })();
  847. </script>
  848. </article>
  849. </section>
  850. <section class="phpdocumentor-on-this-page__sidebar">
  851. <section class="phpdocumentor-on-this-page__content">
  852. <strong class="phpdocumentor-on-this-page__title">On this page</strong>
  853. <ul class="phpdocumentor-list -clean">
  854. <li class="phpdocumentor-on-this-page-section__title">Table Of Contents</li>
  855. <li>
  856. <ul class="phpdocumentor-list -clean">
  857. <li><a href="classes/chillerlan-QRCode-Detector-FinderPattern.html#toc-properties">Properties</a></li>
  858. <li><a href="classes/chillerlan-QRCode-Detector-FinderPattern.html#toc-methods">Methods</a></li>
  859. </ul>
  860. </li>
  861. <li class="phpdocumentor-on-this-page-section__title">Properties</li>
  862. <li>
  863. <ul class="phpdocumentor-list -clean">
  864. <li><a href="classes/chillerlan-QRCode-Detector-ResultPoint.html#property_estimatedModuleSize">$estimatedModuleSize<a href="classes/chillerlan-QRCode-Detector-FinderPattern.html"></li>
  865. <li><a href="classes/chillerlan-QRCode-Detector-ResultPoint.html#property_x">$x<a href="classes/chillerlan-QRCode-Detector-FinderPattern.html"></li>
  866. <li><a href="classes/chillerlan-QRCode-Detector-ResultPoint.html#property_y">$y<a href="classes/chillerlan-QRCode-Detector-FinderPattern.html"></li>
  867. <li><a href="classes/chillerlan-QRCode-Detector-FinderPattern.html#property_count">$count<a href="classes/chillerlan-QRCode-Detector-FinderPattern.html"></li>
  868. </ul>
  869. </li>
  870. <li class="phpdocumentor-on-this-page-section__title">Methods</li>
  871. <li>
  872. <ul class="phpdocumentor-list -clean">
  873. <li><a href="classes/chillerlan-QRCode-Detector-FinderPattern.html#method___construct">__construct()</a></li>
  874. <li><a href="classes/chillerlan-QRCode-Detector-ResultPoint.html#method_aboutEquals">aboutEquals()</a></li>
  875. <li><a href="classes/chillerlan-QRCode-Detector-FinderPattern.html#method_combineEstimate">combineEstimate()</a></li>
  876. <li><a href="classes/chillerlan-QRCode-Detector-FinderPattern.html#method_distance">distance()</a></li>
  877. <li><a href="classes/chillerlan-QRCode-Detector-FinderPattern.html#method_getCount">getCount()</a></li>
  878. <li><a href="classes/chillerlan-QRCode-Detector-FinderPattern.html#method_getDistance">getDistance()</a></li>
  879. <li><a href="classes/chillerlan-QRCode-Detector-ResultPoint.html#method_getEstimatedModuleSize">getEstimatedModuleSize()</a></li>
  880. <li><a href="classes/chillerlan-QRCode-Detector-FinderPattern.html#method_getSquaredDistance">getSquaredDistance()</a></li>
  881. <li><a href="classes/chillerlan-QRCode-Detector-ResultPoint.html#method_getX">getX()</a></li>
  882. <li><a href="classes/chillerlan-QRCode-Detector-ResultPoint.html#method_getY">getY()</a></li>
  883. <li><a href="classes/chillerlan-QRCode-Detector-FinderPattern.html#method_squaredDistance">squaredDistance()</a></li>
  884. </ul>
  885. </li>
  886. </ul>
  887. </section>
  888. </section>
  889. </div>
  890. <section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
  891. <section class="phpdocumentor-search-results__dialog">
  892. <header class="phpdocumentor-search-results__header">
  893. <h2 class="phpdocumentor-search-results__title">Search results</h2>
  894. <button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
  895. </header>
  896. <section class="phpdocumentor-search-results__body">
  897. <ul class="phpdocumentor-search-results__entries"></ul>
  898. </section>
  899. </section>
  900. </section>
  901. </div>
  902. <a href="classes/chillerlan-QRCode-Detector-FinderPattern.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
  903. </main>
  904. <script>
  905. cssVars({});
  906. </script>
  907. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
  908. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
  909. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
  910. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script>
  911. </body>
  912. </html>