Graphics/AssociationItem.py

changeset 3591
2f2a4a76dd22
parent 3178
f25fc1364c88
child 3621
15f23ed3f216
equal deleted inserted replaced
3590:5280e37405b8 3591:2f2a4a76dd22
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

eric ide

mercurial