Added a useful Direction method for snapping to certain directions.