Reimplementation of large parts of the WaveView class
[ardour.git] / libs / canvas / utils.cc
index 1eb11f422dec51abc2885c0c99e5c0ccf2f4b4ea..2c8905b331a0233c97fc12836a07ae2dd7ad23e3 100644 (file)
@@ -87,14 +87,14 @@ ArdourCanvas::distance_to_segment_squared (Duple const & p, Duple const & p1, Du
                at = p1;
                t = 0.0;
                return ((dp1x * dp1x) + (dp1y * dp1y));
-       } 
+       }
 
 
        // Project a line from p to the segment [p1,p2].  By considering the line
        // extending the segment, parameterized as p1 + (t * (p2 - p1)),
-       // we find projection of point p onto the line. 
+       // we find projection of point p onto the line.
        // It falls where t = [(p - p1) . (p2 - p1)] / |p2 - p1|^2
-               
+
        t = ((dp1x * dx) + (dp1y * dy)) / segLenSquared;
 
        if (t < kEpsilon) {