Lines Matching refs:rectPtr

143  *	is entirely outside the rectangle given by rectPtr.  0 is
154 TkLineToArea(end1Ptr, end2Ptr, rectPtr)
159 double rectPtr[4]; /* Points to coords for rectangle, in the
170 inside1 = (end1Ptr[0] >= rectPtr[0]) && (end1Ptr[0] <= rectPtr[2])
171 && (end1Ptr[1] >= rectPtr[1]) && (end1Ptr[1] <= rectPtr[3]);
172 inside2 = (end2Ptr[0] >= rectPtr[0]) && (end2Ptr[0] <= rectPtr[2])
173 && (end2Ptr[1] >= rectPtr[1]) && (end2Ptr[1] <= rectPtr[3]);
193 if (((end1Ptr[1] >= rectPtr[1]) ^ (end2Ptr[1] >= rectPtr[1]))
194 && (end1Ptr[0] >= rectPtr[0])
195 && (end1Ptr[0] <= rectPtr[2])) {
203 if (((end1Ptr[0] >= rectPtr[0]) ^ (end2Ptr[0] >= rectPtr[0]))
204 && (end1Ptr[1] >= rectPtr[1])
205 && (end1Ptr[1] <= rectPtr[3])) {
228 y = end1Ptr[1] + (rectPtr[0] - end1Ptr[0])*m;
229 if ((rectPtr[0] >= low) && (rectPtr[0] <= high)
230 && (y >= rectPtr[1]) && (y <= rectPtr[3])) {
238 y += (rectPtr[2] - rectPtr[0])*m;
239 if ((y >= rectPtr[1]) && (y <= rectPtr[3])
240 && (rectPtr[2] >= low) && (rectPtr[2] <= high)) {
253 x = end1Ptr[0] + (rectPtr[1] - end1Ptr[1])/m;
254 if ((x >= rectPtr[0]) && (x <= rectPtr[2])
255 && (rectPtr[1] >= low) && (rectPtr[1] <= high)) {
263 x += (rectPtr[3] - rectPtr[1])/m;
264 if ((x >= rectPtr[0]) && (x <= rectPtr[2])
265 && (rectPtr[3] >= low) && (rectPtr[3] <= high)) {
295 TkThickPolyLineToArea(coordPtr, numPoints, width, capStyle, joinStyle, rectPtr)
304 double *rectPtr; /* Rectangular area to check against. */
321 if ((coordPtr[0] >= rectPtr[0]) && (coordPtr[0] <= rectPtr[2])
322 && (coordPtr[1] >= rectPtr[1]) && (coordPtr[1] <= rectPtr[3])) {
348 if (TkOvalToArea(poly, rectPtr) != inside) {
380 if (TkPolygonToArea(poly, 5, rectPtr) != inside) {
401 if (TkPolygonToArea(poly, 5, rectPtr) != inside) {
416 if (TkOvalToArea(poly, rectPtr) != inside) {
593 * is entirely outside the rectangle given by rectPtr. 0 is
604 TkPolygonToArea(polyPtr, numPoints, rectPtr)
609 register double *rectPtr; /* Points to coords for rectangle, in the
625 state = TkLineToArea(polyPtr, polyPtr+2, rectPtr);
631 if (TkLineToArea(pPtr, pPtr+2, rectPtr) != state) {
646 if (TkPolygonToPoint(polyPtr, numPoints, rectPtr) == 0.0) {
765 * outside the rectangle given by rectPtr. 0 is returned if the
776 TkOvalToArea(ovalPtr, rectPtr)
781 register double *rectPtr; /* Points to coords for rectangle, in 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])) {
814 deltaY = rectPtr[1] - centerY;
816 deltaY = centerY - rectPtr[3];
828 deltaX = (rectPtr[0] - centerX)/radX;
838 deltaX = (rectPtr[2] - centerX)/radX;
844 deltaX = rectPtr[0] - centerX;
846 deltaX = centerX - rectPtr[2];
858 deltaY = (rectPtr[1] - centerY)/radY;
868 deltaY = (rectPtr[3] - centerY)/radY;