Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #143 from ntamas/fix/derivative-3d
Fix derivative calculations for 3D Bezier curves
  • Loading branch information
Pomax committed Dec 28, 2020
2 parents ebbd305 + 1c34a81 commit 060cac5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bezier.js
Expand Up @@ -333,11 +333,11 @@ class Bezier {
}

derivative(t) {
return utils.compute(t, this.dpoints[0]);
return utils.compute(t, this.dpoints[0], this._3d);
}

dderivative(t) {
return utils.compute(t, this.dpoints[1]);
return utils.compute(t, this.dpoints[1], this._3d);
}

align() {
Expand Down

0 comments on commit 060cac5

Please sign in to comment.