Lines Matching refs:between
244 Solve for t, only if it fits between 0 < t < 1
645 // Chop in between both cusps instead, if any. There can be up to two cusps on a flat line,
654 // We want the point in between both cusps. The midpoint of:
1434 static bool between(SkScalar a, SkScalar b, SkScalar c) {
1449 if (between(startY, src.fPts[1].fY, endY)) {
1453 if (!between(startY, midY, endY)) {
1458 if (!between(startY, dst[0].fPts[1].fY, dst[0].fPts[2].fY)) {
1459 // If the 1st control is not between the start and end, put it at the start.
1463 if (!between(dst[1].fPts[0].fY, dst[1].fPts[1].fY, endY)) {
1464 // If the 2nd control is not between the start and end, put it at the end.
1469 SkASSERT(between(startY, dst[0].fPts[1].fY, dst[0].fPts[2].fY));
1470 SkASSERT(between(dst[0].fPts[1].fY, dst[0].fPts[2].fY, dst[1].fPts[1].fY));
1471 SkASSERT(between(dst[0].fPts[2].fY, dst[1].fPts[1].fY, endY));
1648 // ... we use the dot-prod to distinguish between 0 and 180 (x > 0)