Calculate Distance Between Points On A Plane