Lines Matching defs:res

296     private static boolean IS_CLIPPED(int res) {
297 return res == CRES_MIN_CLIPPED || res == CRES_MAX_CLIPPED;
307 int res = CRES_NOT_CLIPPED;
313 res = CRES_MIN_CLIPPED;
319 res = CRES_MAX_CLIPPED;
325 return res;
332 int res = CRES_NOT_CLIPPED;
338 res = CRES_MIN_CLIPPED;
344 res = CRES_MAX_CLIPPED;
350 return res;
385 int res = TESTANDCLIP(LINE_MIN, LINE_MAX, c, a1, b1, a2, b2);
386 if (res == CRES_MIN_CLIPPED) {
388 } else if (res == CRES_MAX_CLIPPED) {
390 res = CRES_MAX_CLIPPED;
391 } else if (res == CRES_INVISIBLE) {
393 res = CRES_INVISIBLE;
397 res = CRES_NOT_CLIPPED;
400 return res;
409 int res = TESTANDCLIP(LINE_MIN, LINE_MAX, c, a1, b1, a2, b2);
410 if (res == CRES_MIN_CLIPPED) {
412 } else if (res == CRES_MAX_CLIPPED) {
414 res = CRES_MAX_CLIPPED;
415 } else if (res == CRES_INVISIBLE) {
417 res = CRES_INVISIBLE;
421 res = CRES_NOT_CLIPPED;
424 return res;
1233 double res[] = new double[2];
1255 int nr = QuadCurve2D.solveQuadratic(eqn, res);
1262 if (res[i] > 0 && res[i] < 1) {
1263 params[cnt++] = res[i];
1287 int nr = QuadCurve2D.solveQuadratic(eqn, res);
1294 if (res[i] > 0 && res[i] < 1) {
1295 params[cnt++] = res[i];
1362 int X1, Y1, X2, Y2, X3, Y3, res;
1375 // TESTANDCLIP(yMin, yMax, y1, x1, y2, x2, res);
1377 res = TESTANDCLIP(yMin, yMax, c, 1, 0, 3, 2);
1378 if (res == CRES_INVISIBLE) return;
1379 clipped = IS_CLIPPED(res);
1381 // TESTANDCLIP(yMin, yMax, y2, x2, y1, x1, res);
1383 res = TESTANDCLIP(yMin, yMax, c, 3, 2, 1, 0);
1384 if (res == CRES_INVISIBLE) return;
1385 lastClipped = IS_CLIPPED(res);
1390 // TESTANDCLIP(xMin, xMax, x1, y1, x2, y2, res);
1392 res = TESTANDCLIP(xMin, xMax, c, 0, 1, 2, 3);
1393 if (res == CRES_INVISIBLE) return;
1394 clipped = clipped || IS_CLIPPED(res);
1396 // TESTANDCLIP(xMin, xMax, x2, y2, x1, y1, res);
1398 res = TESTANDCLIP(xMin, xMax, c, 2, 3, 0, 1);
1399 if (res == CRES_INVISIBLE) return;
1400 lastClipped = lastClipped || IS_CLIPPED(res);
1424 * CLIPCLAMP(xMin, xMax, x1, y1, x2, y2, x3, y3, res);
1426 res = CLIPCLAMP(xMin, xMax, c, 0, 1, 2, 3, 4, 5);
1431 if (res == CRES_MIN_CLIPPED) {
1437 } else if (res == CRES_INVISIBLE) {
1444 * CLIPCLAMP(xMin, xMax, x2, y2, x1, y1, x3, y3, res);
1446 res = CLIPCLAMP(xMin, xMax, c, 2, 3, 0, 1, 4, 5);
1449 lastClipped = lastClipped || (res == CRES_MAX_CLIPPED);
1457 if (res == CRES_MIN_CLIPPED) {
2032 int res;
2053 * TESTANDCLIP(outYMin, outYMax, y1, x1, y2, x2, res);
2055 res = TESTANDCLIP(outYMin, outYMax, c, 1, 0, 3, 2);
2056 if (res == CRES_INVISIBLE) return;
2059 * TESTANDCLIP(outYMin, outYMax, y2, x2, y1, x1, res);
2061 res = TESTANDCLIP(outYMin, outYMax, c, 3, 2, 1, 0);
2062 if (res == CRES_INVISIBLE) return;
2063 lastClipped = IS_CLIPPED(res);
2068 * CLIPCLAMP(outXMin, outXMax, x1, y1, x2, y2, x3, y3, res);
2070 res = CLIPCLAMP(outXMin, outXMax, c, 0, 1, 2, 3, 4, 5);
2073 if (res == CRES_MIN_CLIPPED) {
2077 } else if (res == CRES_INVISIBLE) {
2084 * CLIPCLAMP(outXMin, outXMax, x2, y2, x1, y1, x3, y3, res);
2086 res = CLIPCLAMP(outXMin, outXMax, c, 2, 3, 0, 1, 4, 5);
2089 lastClipped = lastClipped || (res == CRES_MAX_CLIPPED);
2095 if (res == CRES_MIN_CLIPPED) {