Lines Matching defs:pPtr
460 register double *pPtr;
475 for (count = numPoints, pPtr = polyPtr; count > 1; count--, pPtr += 2) {
485 if (pPtr[2] == pPtr[0]) {
491 x = pPtr[0];
492 if (pPtr[1] >= pPtr[3]) {
493 y = MIN(pPtr[1], pointPtr[1]);
494 y = MAX(y, pPtr[3]);
496 y = MIN(pPtr[3], pointPtr[1]);
497 y = MAX(y, pPtr[1]);
499 } else if (pPtr[3] == pPtr[1]) {
505 y = pPtr[1];
506 if (pPtr[0] >= pPtr[2]) {
507 x = MIN(pPtr[0], pointPtr[0]);
508 x = MAX(x, pPtr[2]);
509 if ((pointPtr[1] < y) && (pointPtr[0] < pPtr[0])
510 && (pointPtr[0] >= pPtr[2])) {
514 x = MIN(pPtr[2], pointPtr[0]);
515 x = MAX(x, pPtr[0]);
516 if ((pointPtr[1] < y) && (pointPtr[0] < pPtr[2])
517 && (pointPtr[0] >= pPtr[0])) {
532 m1 = (pPtr[3] - pPtr[1])/(pPtr[2] - pPtr[0]);
533 b1 = pPtr[1] - m1*pPtr[0];
538 if (pPtr[0] > pPtr[2]) {
539 if (x > pPtr[0]) {
540 x = pPtr[0];
541 y = pPtr[1];
542 } else if (x < pPtr[2]) {
543 x = pPtr[2];
544 y = pPtr[3];
547 if (x > pPtr[2]) {
548 x = pPtr[2];
549 y = pPtr[3];
550 } else if (x < pPtr[0]) {
551 x = pPtr[0];
552 y = pPtr[1];
556 if (lower && (pointPtr[0] >= MIN(pPtr[0], pPtr[2]))
557 && (pointPtr[0] < MAX(pPtr[0], pPtr[2]))) {
619 register double *pPtr;
631 for (pPtr = polyPtr+2, count = numPoints-1; count >= 2;
632 pPtr += 2, count--) {
633 if (TkLineToArea(pPtr, pPtr+2, rectPtr) != state) {