Added some utilities to reason about movement in a 2D space.