Added unit tests for Direction enum.
Renamed fields for clarity.
Renamed methods for clarity.  translateX makes more sense than getX.