\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 : 

Type

$y

$y : 

Type

$estimatedModuleSize

$estimatedModuleSize : 

Type

Methods

__construct()

__construct(  $posX,   $posY,   $estimatedModuleSize) 

Parameters

$posX
$posY
$estimatedModuleSize

orderBestPatterns()

orderBestPatterns(  $patterns) 

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

$patterns

distance()

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

Parameters

$pattern1
$pattern2

Returns

\Zxing\distance —

between two points

getX()

getX() 

getY()

getY() 

equals()

equals(  $other) 

Parameters

$other

hashCode()

hashCode() 

toString()

toString() 

aboutEquals()

aboutEquals(  $moduleSize,   $i,   $j) 

<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

$moduleSize
$i
$j

combineEstimate()

combineEstimate(  $i,   $j,   $newModuleSize) 

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

$i
$j
$newModuleSize

crossProductZ()

crossProductZ(  $pointA,   $pointB,   $pointC) 

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

Parameters

$pointA
$pointB
$pointC