結果 : how to calculate length on a cartesian plane