See the dojox/gfx/bezierutils reference documentation for more information.
Returns the length of the given bezier curve.
| Parameter | Type | Description |
|---|---|---|
| points | Number[] | The bezier points. Should be [p1x, p1y, c1x, c1y, c2x, c2y, p2x, p2y] for a cubic bezier curve or [p1x, p1y, cx, cy, p2x, p2y] for a quadratic bezier curve. |
Returns the distance between the specified points.
| Parameter | Type | Description |
|---|---|---|
| x1 | undefined | |
| y1 | undefined | |
| x2 | undefined | |
| y2 | undefined |
| Parameter | Type | Description |
|---|---|---|
| points | undefined | |
| t | undefined |
Returns the t corresponding to the given length for the specified bezier curve.
| Parameter | Type | Description |
|---|---|---|
| points | Number[] | The bezier points. Should be [p1x, p1y, c1x, c1y, c2x, c2y, p2x, p2y] for a cubic bezier curve or [p1x, p1y, cx, cy, p2x, p2y] for a quadratic bezier curve. |
| length | Number | The length. |