Commits

Panagiotis Mavrogiorgos  committed 3af93f8

Fix typo in method length of class Line.

  • Participants
  • Parent commits 512781e

Comments (0)

Files changed (1)

File geoalg/line.py

         self.end = end
         self.ray = Ray2D(start, end)
 
-    def lenght(self):
+    def length(self):
         return ((self.start[0] - self.end[0])**2 + \
                 (self.start[1] - self.end[1])**2)**0.5
 
     return ((ccw(line1[0], line1[1], line2[0]) * \
              ccw(line1[0], line1[1], line2[1]) <=0) and \
             ((ccw(line2[0], line2[1], line1[0]) * \
-              ccw(line2[0], line2[1], line1[1])) <=0))
+              ccw(line2[0], line2[1], line1[1])) <=0))