(svn r5582) Add and use AxisToTrack{Bits,}()

This commit is contained in:
tron
2006-07-22 08:59:52 +00:00
parent 475f276769
commit 7ec704564a
11 changed files with 82 additions and 53 deletions

View File

@@ -98,6 +98,12 @@ typedef enum Axis {
} Axis;
static inline Axis OtherAxis(Axis a)
{
return (Axis)(a ^ 1);
}
static inline Axis DiagDirToAxis(DiagDirection d)
{
return (Axis)(d & 1);