From fe37ce6bcb5ca7db2e460b5e070efe844a69fa61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Thu, 7 Jul 2011 23:02:26 +0200 Subject: [PATCH] Clean up comments. --- src/path/Curve.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/path/Curve.js b/src/path/Curve.js index 66d0f51d..99312a8f 100644 --- a/src/path/Curve.js +++ b/src/path/Curve.js @@ -587,9 +587,8 @@ var Curve = this.Curve = Base.extend(/** @lends Curve# */{ var a = p1y - p2y, b = p2x - p1x, c = p1x * p2y - p2x * p1y, - // Find the largest distance - // Compute distance from each of the points to that line - v1 = a * c1x + b * c1y + c, + // Find the largest distance from each of the points to the line + v1 = a * c1x + b * c1y + c, v2 = a * c2x + b * c2y + c; // Compute intercepts of bounding box return Math.abs((v1 * v1 + v2 * v2) / (a * (a * a + b * b))) < 0.005;