diff options
Diffstat (limited to 'tile.h')
-rw-r--r-- | tile.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -44,6 +44,12 @@ typedef enum DiagonalDirections { INVALID_DIAGDIR = 0xFF, } DiagDirection; +static inline DiagDirection ReverseDiagDir(DiagDirection d) +{ + return 2 ^ d; +} + + /* the 2 axis */ typedef enum Axis { AXIS_X = 0, |