377 return intersectPoint |
377 return intersectPoint |
378 return QPointF(-1.0, -1.0) |
378 return QPointF(-1.0, -1.0) |
379 |
379 |
380 def __findIntersection(self, p1, p2, p3, p4): |
380 def __findIntersection(self, p1, p2, p3, p4): |
381 """ |
381 """ |
382 Method to calculate the intersection point of two lines. |
382 Private method to calculate the intersection point of two lines. |
383 |
383 |
384 The first line is determined by the points p1 and p2, the second |
384 The first line is determined by the points p1 and p2, the second |
385 line by p3 and p4. If the intersection point is not contained in |
385 line by p3 and p4. If the intersection point is not contained in |
386 the segment p1p2, then it returns (-1.0, -1.0). |
386 the segment p1p2, then it returns (-1.0, -1.0). |
387 |
387 |