Detecting distance travelled (Cartesian)

For others interested, I found an interesting site which has provided code to trilaterate your position.

http://embedded.olin.edu/ultrasonic/software.php