Constants

ZERO_TOLERANCE

ZERO_TOLERANCE = 1.0E-5

Properties

$xRadius

$xRadius : float

Type

float

$yRadius

$yRadius : float

Type

float

$xAxisAngle

$xAxisAngle : float

Type

float

$largeArc

$largeArc : bool

Type

bool

$sweep

$sweep : bool

Type

bool

$x

$x : float

Type

float

$y

$y : float

Type

float

Methods

__construct()

__construct(float  $xRadius, float  $yRadius, float  $xAxisAngle, bool  $largeArc, bool  $sweep, float  $x, float  $y) : mixed

Parameters

float $xRadius
float $yRadius
float $xAxisAngle
bool $largeArc
bool $sweep
float $x
float $y

Returns

mixed —

getXRadius()

getXRadius() : float

Returns

float —

getYRadius()

getYRadius() : float

Returns

float —

getXAxisAngle()

getXAxisAngle() : float

Returns

float —

isLargeArc()

isLargeArc() : bool

Returns

bool —

isSweep()

isSweep() : bool

Returns

bool —

getX()

getX() : float

Returns

float —

getY()

getY() : float

Returns

float —

translate()

translate(float  $x, float  $y) : self

Translates the operation's coordinates.

Parameters

float $x
float $y

Returns

self —

toCurves()

toCurves(float  $fromX, float  $fromY) : (\BaconQrCode\Renderer\Path\Curve|\BaconQrCode\Renderer\Path\Line)[]

Converts the elliptic arc to multiple curves.

Since not all image back ends support elliptic arcs, this method allows to convert the arc into multiple curves resembling the same result.

Parameters

float $fromX
float $fromY

Returns

(\BaconQrCode\Renderer\Path\Curve|\BaconQrCode\Renderer\Path\Line)[] —

createCurves()

createCurves(float  $fromX, mixed  $fromY) : \BaconQrCode\Renderer\Path\Curve[]

Parameters

float $fromX
mixed $fromY

Returns

\BaconQrCode\Renderer\Path\Curve[] —

calculateCenterPointParameters()

calculateCenterPointParameters(float  $fromX, float  $fromY, float  $xAngle) : float[]

Parameters

float $fromX
float $fromY
float $xAngle

Returns

float[] —

angle()

angle(float  $ux, float  $uy, float  $vx, float  $vy) : float

Parameters

float $ux
float $uy
float $vx
float $vy

Returns

float —

point()

point(float  $centerX, float  $centerY, float  $radiusX, float  $radiusY, float  $xAngle, float  $angle) : float[]

Parameters

float $centerX
float $centerY
float $radiusX
float $radiusY
float $xAngle
float $angle

Returns

float[] —

derivative()

derivative(float  $radiusX, float  $radiusY, float  $xAngle, float  $angle) : float[]

Parameters

float $radiusX
float $radiusY
float $xAngle
float $angle

Returns

float[] —