mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
Use correct formula in Curve#getTangentAt() for end-points when there is no handle.
Closes #553.
This commit is contained in:
parent
bfd3a91df0
commit
ebdc63fbfa
1 changed files with 2 additions and 2 deletions
|
@ -520,8 +520,8 @@ statics: {
|
|||
// http://stackoverflow.com/questions/10506868/
|
||||
if (t < tolerance && c1x === p1x && c1y === p1y
|
||||
|| t > 1 - tolerance && c2x === p2x && c2y === p2y) {
|
||||
x = p2x - p1x;
|
||||
y = p2y - p1y;
|
||||
x = c2x - c1x;
|
||||
y = c2y - c1y;
|
||||
} else if (t < tolerance) {
|
||||
x = cx;
|
||||
y = cy;
|
||||
|
|
Loading…
Reference in a new issue