changeset 4158 | a8f7265a6fd0 |
parent 3953 | db302c2d1a2a |
child 4666 | 850b5b6e4bac |
4157:0c3210247472 | 4158:a8f7265a6fd0 |
---|---|
96 AXIS_Y = 1, |
96 AXIS_Y = 1, |
97 AXIS_END |
97 AXIS_END |
98 } Axis; |
98 } Axis; |
99 |
99 |
100 |
100 |
101 static inline Axis OtherAxis(Axis a) |
|
102 { |
|
103 return (Axis)(a ^ 1); |
|
104 } |
|
105 |
|
106 |
|
101 static inline Axis DiagDirToAxis(DiagDirection d) |
107 static inline Axis DiagDirToAxis(DiagDirection d) |
102 { |
108 { |
103 return (Axis)(d & 1); |
109 return (Axis)(d & 1); |
104 } |
110 } |
105 |
111 |