\Zxing\Common\DetectorMathUtils

Summary

Methods
Properties
Constants
round()
distance()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
__construct()
No private properties found
N/A

Methods

round()

round(float  $d) : int

Ends up being a bit faster than {@link Math#round(float)}. This merely rounds its argument to the nearest int, where x.5 rounds up to x+1. Semantics of this shortcut differ slightly from {@link Math#round(float)} in that half rounds down for negative values. -2.5 rounds to -3, not -2. For purposes here it makes no difference.

Parameters

float $d

real value to round

Returns

int —

$nearest {@code int}

distance()

distance(mixed  $aX, mixed  $aY, mixed  $bX, mixed  $bY) : mixed

Parameters

mixed $aX
mixed $aY
mixed $bX
mixed $bY

Returns

mixed —

__construct()

__construct() : mixed

Returns

mixed —