• Home
  • Raw
  • Download

Lines Matching refs:opp

81         SkTSpan* opp = this->spanAtT(t, &priorSpan);  in addForPerp()  local
82 if (!opp) { in addForPerp()
83 opp = this->addFollowing(priorSpan); in addForPerp()
86 priorSpan->debugID() : -1, t, opp->debugID()); in addForPerp()
90 opp->dump(); SkDebugf("\n"); in addForPerp()
92 priorSpan->debugID() : -1, opp->debugID()); in addForPerp()
94 opp->addBounded(span, &fHeap); in addForPerp()
95 span->addBounded(opp, &fHeap); in addForPerp()
153 const SkTSpan* opp) const { in findOppSpan()
157 if (opp == test) { in findOppSpan()
170 int SkTSpan::hullCheck(const SkTSpan* opp, in hullCheck() argument
176 if (onlyEndPointsInCommon(opp, start, oppStart, &ptsInCommon)) { in hullCheck()
181 if (fPart->hullIntersects(*opp->fPart, &linear)) { in hullCheck()
198 int SkTSpan::hullsIntersect(SkTSpan* opp, in hullsIntersect() argument
200 if (!fBounds.intersects(opp->fBounds)) { in hullsIntersect()
203 int hullSect = this->hullCheck(opp, start, oppStart); in hullsIntersect()
207 hullSect = opp->hullCheck(this, oppStart, start); in hullsIntersect()
281 double opp = (*fPart)[end].fY - origY; in linearIntersects() local
282 double maxPart = std::max(fabs(adj), fabs(opp)); in linearIntersects()
288 double test = (q2[n].fY - origY) * adj - (q2[n].fX - origX) * opp; in linearIntersects()
306 bool SkTSpan::onlyEndPointsInCommon(const SkTSpan* opp, in onlyEndPointsInCommon() argument
308 if (opp->pointFirst() == this->pointFirst()) { in onlyEndPointsInCommon()
310 } else if (opp->pointFirst() == this->pointLast()) { in onlyEndPointsInCommon()
313 } else if (opp->pointLast() == this->pointFirst()) { in onlyEndPointsInCommon()
316 } else if (opp->pointLast() == this->pointLast()) { in onlyEndPointsInCommon()
327 opp->fPart->otherPts(*oppStart ? 0 : opp->fPart->pointLast(), oppOtherPts); in onlyEndPointsInCommon()
331 for (int o2 = 0; o2 < opp->pointCount() - 1; ++o2) { in onlyEndPointsInCommon()
357 SkTSpan* opp = bounded->fBounded; in removeAllBounded() local
358 deleteSpan |= opp->removeBounded(this); in removeAllBounded()
364 bool SkTSpan::removeBounded(const SkTSpan* opp) { in removeBounded() argument
371 if (opp != test) { in removeBounded()
387 if (opp == bounded->fBounded) { in removeBounded()
558 const SkTCurve& opp = sect2->fCurve; in binarySearchCoin() local
574 work.fCoinStart.setPerp(fCurve, work.fStartT, last, opp); in binarySearchCoin()
603 if (oppPt.approximatelyEqual(opp[0])) { in binarySearchCoin()
735 const SkTCurve& opp = sect2->fCurve; in computePerpendiculars() local
743 work->fCoinStart.setPerp(fCurve, work->fStartT, work->pointFirst(), opp); in computePerpendiculars()
753 work->fCoinEnd.setPerp(fCurve, work->fEndT, work->pointLast(), opp); in computePerpendiculars()
984 SkTSect* opp, in intersects() argument
1020 int sects = this->linesIntersect(span, opp, oppSpan, &i); in intersects()
1029 opp->removedEndCheck(oppSpan); in intersects()
1040 static bool is_parallel(const SkDLine& thisLine, const SkTCurve& opp) { in is_parallel() argument
1041 if (!opp.IsConic()) { in is_parallel()
1050 perpRayI.intersectRay(opp, thisPerp); in is_parallel()
1057 perpRayI.intersectRay(opp, thisPerp); in is_parallel()
1069 SkTSect* opp, in linesIntersect() argument
1077 if (!thisRayI.intersectRay(opp->fCurve, thisLine)) { in linesIntersect()
1091 if (ptMatches == 2 || is_parallel(thisLine, opp->fCurve)) { in linesIntersect()
1146 if (!thisRayI.intersectRay(opp->fCurve, thisLine)) { in linesIntersect()
1150 oppLine[0] = opp->fCurve.ptAtT(start); in linesIntersect()
1151 oppLine[1] = oppLine[0] + opp->fCurve.dxdyAtT(start); in linesIntersect()
1158 oCoinS.setPerp(opp->fCurve, oppSpan->fStartT, oppSpan->pointFirst(), fCurve); in linesIntersect()
1159 oCoinE.setPerp(opp->fCurve, oppSpan->fEndT, oppSpan->pointLast(), fCurve); in linesIntersect()
1175 coinS.setPerp(fCurve, span->fStartT, span->pointFirst(), opp->fCurve); in linesIntersect()
1184 coinE.setPerp(fCurve, span->fEndT, span->pointLast(), opp->fCurve); in linesIntersect()
1205 coinW.setPerp(fCurve, workT, workPt, opp->fCurve); in linesIntersect()
1219 if (!opp->fHead->contains(oppTTest)) { in linesIntersect()
1343 SkTSpan* span, SkTSect* opp) { in removeAllBut() argument
1352 opp->removeSpan(bounded); in removeAllBut()
1362 bool SkTSect::removeByPerpendicular(SkTSect* opp) { in removeByPerpendicular() argument
1379 if (!this->removeSpans(test, opp)) { in removeByPerpendicular()
1439 SkTSect* opp) { in removeSpans() argument
1448 opp->removeSpan(spanBounded); in removeSpans()
1450 if (span->fDeleted && opp->hasBounded(span)) { in removeSpans()
1489 SkTSect* opp) { in trim() argument
1495 int oppSects, sects = this->intersects(span, opp, test, &oppSects); in trim()
1498 test->initBounds(opp->fCurve); in trim()
1499 opp->removeAllBut(span, test, this); in trim()
1503 this->removeAllBut(test, span, opp); in trim()
1511 opp->removeSpan(test); in trim()