結果 : how to calculate cartesian coordinates