getBoundsOfCurve
getBoundsOfCurve(
begx
,begy
,cp1x
,cp1y
,cp2x
,cp2y
,endx
,endy
):TRectBounds
Defined in: src/util/path/index.ts:221
Calculate bounding box of a cubic Bezier curve Taken from http://jsbin.com/ivomiq/56/edit (no credits available) TODO: can we normalize this with the starting points set at 0 and then translated the bbox?
Parameters
Section titled “Parameters”number
starting point
number
number
first control point
number
number
second control point
number
number
end of bezier
number
Returns
Section titled “Returns”the rectangular bounds