\Zxing\Qrcode\DetectorAlignmentPattern

<p>Encapsulates an alignment pattern, which are the smaller square patterns found in all but the simplest QR Codes.</p>

Summary

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

Properties

$x

$x

$y

$y

$estimatedModuleSize

$estimatedModuleSize

Methods

__construct()

__construct(mixed  $posX, mixed  $posY, mixed  $estimatedModuleSize) : mixed

Parameters

mixed $posX
mixed $posY
mixed $estimatedModuleSize

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 —

aboutEquals()

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

<p>Determines if this alignment pattern "about equals" an alignment 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 an average of the two.

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 —