\BaconQrCode\Renderer\PathPath

Internal Representation of a vector path.

Summary

Methods
Properties
Constants
move()
line()
ellipticArc()
curve()
close()
append()
translate()
getIterator()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$operations
N/A

Properties

$operations

$operations : \BaconQrCode\Renderer\Path\OperationInterface[]

Type

OperationInterface[]

Methods

move()

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

Moves the drawing operation to a certain position.

Parameters

float $x
float $y

Returns

self —

line()

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

Draws a line from the current position to another position.

Parameters

float $x
float $y

Returns

self —

ellipticArc()

ellipticArc(float  $xRadius, float  $yRadius, float  $xAxisRotation, bool  $largeArc, bool  $sweep, float  $x, float  $y) : self

Draws an elliptic arc from the current position to another position.

Parameters

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

Returns

self —

curve()

curve(float  $x1, float  $y1, float  $x2, float  $y2, float  $x3, float  $y3) : self

Draws a curve from the current position to another position.

Parameters

float $x1
float $y1
float $x2
float $y2
float $x3
float $y3

Returns

self —

close()

close() : self

Closes a sub-path.

Returns

self —

append()

append(self  $other) : self

Appends another path to this one.

Parameters

self $other

Returns

self —

translate()

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

Parameters

float $x
float $y

Returns

self —

getIterator()

getIterator() : \BaconQrCode\Renderer\Path\OperationInterface[]|\Traversable

Returns

\BaconQrCode\Renderer\Path\OperationInterface[]|\Traversable —