def pointDistance( P1, P2 ):
	"""Calculates the distance between P1 and P2."""
	x1, y1 = P1.x, P1.y
	x2, y2 = P2.x, P2.y
	dist = ( ( float(x2) - float(x1) ) ** 2 + ( float(y2) - float(y1) ) **2 ) ** 0.5
	return dist