mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-05 20:32:00 -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) {
|
||||
// Calculate the polynomial coefficients. caution: handles are relative
|
||||
// to points
|
||||
var point1 = this._segment1._point,
|
||||
handle1 = this._segment1._handleOut,
|
||||
handle2 = this._segment2._handleIn,
|
||||
point2 = this._segment2._point,
|
||||
var point1 = that._segment1._point,
|
||||
handle1 = that._segment1._handleOut,
|
||||
handle2 = that._segment2._handleIn,
|
||||
point2 = that._segment2._point,
|
||||
x, y;
|
||||
|
||||
// Handle special case at beginning / end of curve
|
||||
|
|
Loading…
Reference in a new issue