From c296eb0883957733914809901f3cbb8ea4453df7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Sun, 5 Jun 2011 13:09:53 +0100 Subject: [PATCH] Fix wrong direction of tangent evaluation at t = 1. --- src/path/Curve.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/path/Curve.js b/src/path/Curve.js index 8a17abc1..69d4eebb 100644 --- a/src/path/Curve.js +++ b/src/path/Curve.js @@ -410,8 +410,8 @@ var Curve = this.Curve = Base.extend({ } else { // handle2 px = c2x; py = c2y; } - x = px - p2x; - y = py - p2y; + x = p2x - px; + y = p2y - py; } break; }