Skip to content

Commit

Permalink
derivative calculations now work for the 3D case as well
Browse files Browse the repository at this point in the history
  • Loading branch information
ntamas committed Dec 27, 2020
1 parent ebbd305 commit 1c34a81
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 1c34a81

Please sign in to comment.