BezierCurve
in package
FinalYes
Cubic Bézier curve — the primitive behind PDF path operators (c, v, y).
Four control points define the curve. boundingBox() computes tight
bounds via derivative roots, used for clipping and hit-testing.
Table of Contents
Properties
Methods
- __construct() : mixed
- bounds() : Rectangle
- Bounding box via extrema of the derivative polynomial
- pointAt() : Point
Properties
$p0 read-only
public
Point
$p0
$p1 read-only
public
Point
$p1
$p2 read-only
public
Point
$p2
$p3 read-only
public
Point
$p3
Methods
__construct()
public
__construct(Point $p0, Point $p1, Point $p2, Point $p3) : mixed
Parameters
bounds()
Bounding box via extrema of the derivative polynomial
public
bounds() : Rectangle
Return values
RectanglepointAt()
public
pointAt(float $t) : Point
Parameters
- $t : float