UNPKG

jointjs

Version:

JavaScript diagramming library

5 lines (3 loc) 413 B
<pre class="docs-method-signature"><code>g.bezier.getCurveDivider(p0, p1, p2, p3)</code></pre> <p>Deprecated. Use the <code>curve.divide</code> <a href="#g.Curve.prototype.divide">function</a> instead.</p> <p>Returns a function that divides a Bezier curve into two at point defined by value <code>t</code> between 0 and 1. Uses the <a href="http://math.stackexchange.com/a/317867">deCasteljau algorithm</a>.</p>