Lines Matching defs:pPtr
458 register double *pPtr;
473 for (count = numPoints, pPtr = polyPtr; count > 1; count--, pPtr += 2) {
483 if (pPtr[2] == pPtr[0]) {
489 x = pPtr[0];
490 if (pPtr[1] >= pPtr[3]) {
491 y = MIN(pPtr[1], pointPtr[1]);
492 y = MAX(y, pPtr[3]);
494 y = MIN(pPtr[3], pointPtr[1]);
495 y = MAX(y, pPtr[1]);
497 } else if (pPtr[3] == pPtr[1]) {
503 y = pPtr[1];
504 if (pPtr[0] >= pPtr[2]) {
505 x = MIN(pPtr[0], pointPtr[0]);
506 x = MAX(x, pPtr[2]);
507 if ((pointPtr[1] < y) && (pointPtr[0] < pPtr[0])
508 && (pointPtr[0] >= pPtr[2])) {
512 x = MIN(pPtr[2], pointPtr[0]);
513 x = MAX(x, pPtr[0]);
514 if ((pointPtr[1] < y) && (pointPtr[0] < pPtr[2])
515 && (pointPtr[0] >= pPtr[0])) {
530 m1 = (pPtr[3] - pPtr[1])/(pPtr[2] - pPtr[0]);
531 b1 = pPtr[1] - m1*pPtr[0];
536 if (pPtr[0] > pPtr[2]) {
537 if (x > pPtr[0]) {
538 x = pPtr[0];
539 y = pPtr[1];
540 } else if (x < pPtr[2]) {
541 x = pPtr[2];
542 y = pPtr[3];
545 if (x > pPtr[2]) {
546 x = pPtr[2];
547 y = pPtr[3];
548 } else if (x < pPtr[0]) {
549 x = pPtr[0];
550 y = pPtr[1];
554 if (lower && (pointPtr[0] >= MIN(pPtr[0], pPtr[2]))
555 && (pointPtr[0] < MAX(pPtr[0], pPtr[2]))) {
617 register double *pPtr;
629 for (pPtr = polyPtr+2, count = numPoints-1; count >= 2;
630 pPtr += 2, count--) {
631 if (TkLineToArea(pPtr, pPtr+2, rectPtr) != state) {