\Zxing\Qrcode\DetectorFinderPattern

<p>Encapsulates a finder pattern, which are the three square patterns found in the corners of QR Codes. It also encapsulates a count of similar finder patterns, as a convenience to the finder's bookkeeping.</p>

Summary

Methods
Properties
Constants
__construct()
orderBestPatterns()
distance()
getX()
getY()
equals()
hashCode()
toString()
getEstimatedModuleSize()
getCount()
aboutEquals()
combineEstimate()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
crossProductZ()
$x
$y
$estimatedModuleSize
$count
N/A

Properties

$x

$x

$y

$y

$estimatedModuleSize

$estimatedModuleSize

$count

$count

Methods

__construct()

__construct(mixed  $posX, mixed  $posY, mixed  $estimatedModuleSize, mixed  $count = 1) : mixed

Parameters

mixed $posX
mixed $posY
mixed $estimatedModuleSize
mixed $count

Returns

mixed —

orderBestPatterns()

orderBestPatterns(mixed  $patterns) : mixed

Orders an array of three ResultPoints in an order [A,B,C] such that AB is less than AC and BC is less than AC, and the angle between BC and BA is less than 180 degrees.

Parameters

mixed $patterns

Returns

mixed —

distance()

distance(mixed  $pattern1, mixed  $pattern2) : \Zxing\distance

Parameters

mixed $pattern1
mixed $pattern2

Returns

\Zxing\distance —

between two points

getX()

getX() : mixed

Returns

mixed —

getY()

getY() : mixed

Returns

mixed —

equals()

equals(mixed  $other) : mixed

Parameters

mixed $other

Returns

mixed —

hashCode()

hashCode() : mixed

Returns

mixed —

toString()

toString() : mixed

Returns

mixed —

getEstimatedModuleSize()

getEstimatedModuleSize() : mixed

Returns

mixed —

getCount()

getCount() : mixed

Returns

mixed —

aboutEquals()

aboutEquals(mixed  $moduleSize, mixed  $i, mixed  $j) : mixed

<p>Determines if this finder pattern "about equals" a finder pattern at the stated position and size -- meaning, it is at nearly the same center with nearly the same size.</p>

Parameters

mixed $moduleSize
mixed $i
mixed $j

Returns

mixed —

combineEstimate()

combineEstimate(mixed  $i, mixed  $j, mixed  $newModuleSize) : mixed

Combines this object's current estimate of a finder pattern position and module size with a new estimate. It returns a new {@code FinderPattern} containing a weighted average based on count.

Parameters

mixed $i
mixed $j
mixed $newModuleSize

Returns

mixed —

crossProductZ()

crossProductZ(mixed  $pointA, mixed  $pointB, mixed  $pointC) : mixed

Returns the z component of the cross product between vectors BC and BA.

Parameters

mixed $pointA
mixed $pointB
mixed $pointC

Returns

mixed —