move_position

Function move_position 

Source
pub fn move_position(old_position: &Point, dir: Direction) -> Point
Expand description

Moves the 2d point by 1 in the given direction. Only works for 2d directions (North, South, East, West)