* Find the opposite track to a given track. * * TRACK_LOWER -> TRACK_UPPER and vice versa, likewise for left/right. * TRACK_X is mapped to TRACK_Y and reversed. * * @param t the track to convert * @return the opposite track */
| 229 | * @return the opposite track |
| 230 | */ |
| 231 | inline Track TrackToOppositeTrack(Track t) |
| 232 | { |
| 233 | assert(IsValidTrack(t)); |
| 234 | return (Track)(t ^ 1); |
| 235 | } |
| 236 | |
| 237 | /** |
| 238 | * Maps a trackdir to the reverse trackdir. |
no test coverage detected