Lines Matching defs:directions
433 must travel in opposite directions.
439 directions values:
443 two directions are opposites iff (dirA ^ dirB) == 0x2
444 two directions are perpendicular iff (dirA ^ dirB) == 0x1
3514 signed char directions[] = {-1, -1, -1, -1, -1}; // -1 to 3; -1 is uninitialized
3544 directions[0] = nextDirection;
3553 if (autoClose && nextDirection == directions[0]) {
3557 if (directions[corners - 1] == nextDirection) {
3564 directions[corners++] = nextDirection;
3565 // opposite lines must point in opposite directions; xoring them should equal 2
3571 if ((directions[0] ^ directions[2]) != 2) {
3577 if ((directions[1] ^ directions[3]) != 2) {
3592 if (allowPartial && !autoClose && directions[0] >= 0) {
3635 *direction = directions[0] == ((directions[1] + 1) & 3) ?