curve
Constructs a line segment between two 2D points.
Parameters
p0
the starting point of the line segment
p1
the ending point of the line segment
Creates a quadratic Bézier curve defined by three control points.
Return
a new instance of QuadraticBezier2 representing the curve
Parameters
p0
the starting point of the curve
p1
the control point that determines the curve's shape
p2
the ending point of the curve
Creates a cubic Bézier curve defined by four control points.
Return
A cubic Bézier curve represented as a Curve2.
Parameters
p0
The starting point of the curve.
p1
The first control point that determines the curve's shape.
p2
The second control point that influences the curve's shape.
p3
The ending point of the curve.