mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-22 23:39:59 -05:00
Fix error in Curve evaluation.
This commit is contained in:
parent
e19c3bf3c2
commit
eb09ec2442
1 changed files with 4 additions and 4 deletions
|
@ -167,10 +167,10 @@ var Curve = this.Curve = Base.extend({
|
||||||
function evaluate(that, t, type) {
|
function evaluate(that, t, type) {
|
||||||
// Calculate the polynomial coefficients. caution: handles are relative
|
// Calculate the polynomial coefficients. caution: handles are relative
|
||||||
// to points
|
// to points
|
||||||
var point1 = this._segment1._point,
|
var point1 = that._segment1._point,
|
||||||
handle1 = this._segment1._handleOut,
|
handle1 = that._segment1._handleOut,
|
||||||
handle2 = this._segment2._handleIn,
|
handle2 = that._segment2._handleIn,
|
||||||
point2 = this._segment2._point,
|
point2 = that._segment2._point,
|
||||||
x, y;
|
x, y;
|
||||||
|
|
||||||
// Handle special case at beginning / end of curve
|
// Handle special case at beginning / end of curve
|
||||||
|
|
Loading…
Reference in a new issue