distances function

Alternative point distance (and direction) calculations