Home | History | Annotate | Download | only in core

Lines Matching defs:corners

432 The direction takes advantage of the corners found since opposite sides
441 int corners = 0;
473 if (0 == corners) {
477 corners = 1;
489 if (++corners > 4) {
497 // Possible values for corners are 2, 3, and 4.
498 // When corners == 3, nextDirection opposes firstDirection.
500 int turn = firstDirection ^ (corners - 1);
501 int directionCycle = 3 == corners ? 0 : nextDirection ^ turn;
522 // Success if 4 corners and first point equals last
523 bool result = 4 == corners && (first == last || autoClose);