結果 : how to calculate distance on a cartesian plane