結果 : how to calculate distance in cartesian plane