Clean up comments.

This commit is contained in:
Jürg Lehni 2011-07-07 23:02:26 +02:00
parent 23c4499d15
commit fe37ce6bcb

View file

@ -587,9 +587,8 @@ var Curve = this.Curve = Base.extend(/** @lends Curve# */{
var a = p1y - p2y, var a = p1y - p2y,
b = p2x - p1x, b = p2x - p1x,
c = p1x * p2y - p2x * p1y, c = p1x * p2y - p2x * p1y,
// Find the largest distance // Find the largest distance from each of the points to the line
// Compute distance from each of the points to that line v1 = a * c1x + b * c1y + c,
v1 = a * c1x + b * c1y + c,
v2 = a * c2x + b * c2y + c; v2 = a * c2x + b * c2y + c;
// Compute intercepts of bounding box // Compute intercepts of bounding box
return Math.abs((v1 * v1 + v2 * v2) / (a * (a * a + b * b))) < 0.005; return Math.abs((v1 * v1 + v2 * v2) / (a * (a * a + b * b))) < 0.005;