Documentation

AlignmentPattern extends ResultPoint
in package

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

Tags
author

Sean Owen

Table of Contents

$estimatedModuleSize  : float
$x  : float
$y  : float
__construct()  : mixed
aboutEquals()  : bool
<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>
combineEstimate()  : self
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.
getEstimatedModuleSize()  : float
getX()  : float
getY()  : float

Properties

$estimatedModuleSize

protected float $estimatedModuleSize

Methods

__construct()

public __construct(float $x, float $y, float $estimatedModuleSize) : mixed
Parameters
$x : float
$y : float
$estimatedModuleSize : float
Return values
mixed

aboutEquals()

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

public aboutEquals(float $moduleSize, float $i, float $j) : bool
Parameters
$moduleSize : float
$i : float
$j : float
Return values
bool

combineEstimate()

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.

public combineEstimate(float $i, float $j, float $newModuleSize) : self
Parameters
$i : float
$j : float
$newModuleSize : float
Return values
self

getEstimatedModuleSize()

public getEstimatedModuleSize() : float
Return values
float

getX()

public getX() : float
Return values
float

getY()

public getY() : float
Return values
float

Search results