Lines Matching refs:ovalPtr
678 TkOvalToPoint(ovalPtr, width, filled, pointPtr)
679 double ovalPtr[4]; /* Pointer to array of four coordinates
696 xDelta = (pointPtr[0] - (ovalPtr[0] + ovalPtr[2])/2.0);
697 yDelta = (pointPtr[1] - (ovalPtr[1] + ovalPtr[3])/2.0);
699 scaledDistance = hypot(xDelta / ((ovalPtr[2] + width - ovalPtr[0])/2.0),
700 yDelta / ((ovalPtr[3] + width - ovalPtr[1])/2.0));
739 xDiam = ovalPtr[2] - ovalPtr[0];
740 yDiam = ovalPtr[3] - ovalPtr[1];
764 * -1 is returned if the oval described by ovalPtr is entirely
776 TkOvalToArea(ovalPtr, rectPtr)
777 register double *ovalPtr; /* Points to coordinates definining the
792 if ((rectPtr[0] <= ovalPtr[0]) && (rectPtr[2] >= ovalPtr[2])
793 && (rectPtr[1] <= ovalPtr[1]) && (rectPtr[3] >= ovalPtr[3])) {
796 if ((rectPtr[2] < ovalPtr[0]) || (rectPtr[0] > ovalPtr[2])
797 || (rectPtr[3] < ovalPtr[1]) || (rectPtr[1] > ovalPtr[3])) {
809 centerX = (ovalPtr[0] + ovalPtr[2])/2;
810 centerY = (ovalPtr[1] + ovalPtr[3])/2;
811 radX = (ovalPtr[2] - ovalPtr[0])/2;
812 radY = (ovalPtr[3] - ovalPtr[1])/2;