Represents the four basic directions on a grid. You can conveniently use it like:
Point pt = Point(5, 3); pt += Dir.N; // moves up
The opposite direction btw can be gotten with pt * -1.
See Implementation
Added May 3, 2020
Represents the four basic directions on a grid. You can conveniently use it like:
The opposite direction btw can be gotten with pt * -1.