Issue #3 - added handy coordinate math functions.