Skip to content

Commit

Permalink
Merge pull request paperjs#962 from iconexperience/fix-issue-960
Browse files Browse the repository at this point in the history
Fix for paperjs#960 - Shortcut Curve.evaluate() for t === 1
  • Loading branch information
lehni committed Feb 12, 2016
2 parents 80c8aae + aa1f219 commit 7c24fc9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/path/Curve.js
Original file line number Diff line number Diff line change
Expand Up @@ -1338,8 +1338,8 @@ new function() { // Scope for methods that require private functions
if (type === 0) {
// type === 0: getPoint()
// Calculate the curve point at parameter value t
x = ((ax * t + bx) * t + cx) * t + p1x;
y = ((ay * t + by) * t + cy) * t + p1y;
x = t === 1 ? p2x : ((ax * t + bx) * t + cx) * t + p1x;
y = t === 1 ? p2y : ((ay * t + by) * t + cy) * t + p1y;
} else {
// type === 1: getTangent()
// type === 2: getNormal()
Expand Down

0 comments on commit 7c24fc9

Please sign in to comment.