anything around these lines?
def distanceBetweenPoints(p1, p2):
x1, y1 = P1.getX(), P1.getY()
x2, y2 = P2.getX(), P2.getY()
distance = float(math.sqrt((x2-x1)**2+(y2-y1)**2))
The parameters p1 and p2 should not become P1 ad P2 the next line. Also, what does pyhon say ?
Reputation Points: 930
Solved Threads: 668
Posting Maven
Offline 2,655 posts
since Jul 2008