• Home
  • Raw
  • Download

Lines Matching refs:fPts

80     int index = fPts.count();  in addPt()
81 *fPts.push() = pt; in addPt()
93 fPts.pop(); in popLastPt()
104 fPts.removeShuffle(0); in popFirstPtShuffle()
119 fPts[index] = pt; in updatePt()
134 fPts.rewind(); in rewind()
159 fNorms.append(fPts.count()); in computeNormals()
160 fNorms[0] = fPts[1] - fPts[0]; in computeNormals()
161 fNorms.top() = fPts[0] - fPts.top(); in computeNormals()
166 fNorms[cur] = normalToVector(fPts[cur + 1] - fPts[cur]); in computeNormals()
331 SkPoint v = p - fPts[edgeIdx]; in computeDepthFromEdge()
348 SkScalar t = perp_intersect(fPts[startIdx], bisector, fPts[edgeIdx], norm); in computePtAlongBisector()
351 SkASSERT(startIdx < fPts.count()); in computePtAlongBisector()
352 newP = fPts[startIdx]; in computePtAlongBisector()
356 newP += fPts[startIdx]; in computePtAlongBisector()
431 if (duplicate_pt(fPts[this->numPts()-1], fPts[0])) { in extractFromPath()
438 if (points_are_colinear_and_b_is_middle(fPts[fPts.count() - 2], fPts.top(), fPts[0])) { in extractFromPath()
440 } else if (points_are_colinear_and_b_is_middle(fPts.top(), fPts[0], fPts[1])) { in extractFromPath()
462 fNorms[0] = SkPointPriv::MakeOrthog(fPts[1] - fPts[0], fSide); in extractFromPath()
537 perp2 += fPts[originalIdx]; in createOuterRing()
565 miter += fPts[originalIdx]; in createOuterRing()
595 miter += fPts[originalIdx]; in createOuterRing()
833 SkASSERT(fPts.count() == fMovable.count()); in validate()
834 SkASSERT(fPts.count() == fCoverages.count()); in validate()
835 SkASSERT(fPts.count() == fCurveState.count()); in validate()
848 for (int i = 0; i < fPts.count(); ++i) { in init()
849 fPts[i].fNorm = norms[i]; in init()
850 fPts[i].fBisector = bisectors[i]; in init()
856 for (int cur = 0; cur < fPts.count(); ++cur) { in computeNormals()
857 int next = (cur + 1) % fPts.count(); in computeNormals()
859 fPts[cur].fNorm = tess.point(fPts[next].fIndex) - tess.point(fPts[cur].fIndex); in computeNormals()
860 SkPoint::Normalize(&fPts[cur].fNorm); in computeNormals()
861 fPts[cur].fNorm = SkPointPriv::MakeOrthog(fPts[cur].fNorm, tess.side()); in computeNormals()
866 int prev = fPts.count() - 1; in computeBisectors()
867 for (int cur = 0; cur < fPts.count(); prev = cur, ++cur) { in computeBisectors()
868 fPts[cur].fBisector = fPts[cur].fNorm + fPts[prev].fNorm; in computeBisectors()
869 if (!fPts[cur].fBisector.normalize()) { in computeBisectors()
870 fPts[cur].fBisector = in computeBisectors()
871 SkPointPriv::MakeOrthog(fPts[cur].fNorm, (SkPointPriv::Side)-tess.side()) + in computeBisectors()
872 SkPointPriv::MakeOrthog(fPts[prev].fNorm, tess.side()); in computeBisectors()
873 SkAssertResult(fPts[cur].fBisector.normalize()); in computeBisectors()
875 fPts[cur].fBisector.negate(); // make the bisector face in in computeBisectors()
884 if (fPts.count() < 3) { in isConvex()
888 SkPoint prev = tess.point(fPts[0].fIndex) - tess.point(fPts.top().fIndex); in isConvex()
889 SkPoint cur = tess.point(fPts[1].fIndex) - tess.point(fPts[0].fIndex); in isConvex()
894 for (int i = 1; i < fPts.count(); ++i) { in isConvex()
895 int next = (i + 1) % fPts.count(); in isConvex()
897 cur = tess.point(fPts[next].fIndex) - tess.point(fPts[i].fIndex); in isConvex()
923 points_are_colinear_and_b_is_middle(fPts[fPts.count() - 2], fPts.top(), p)) { in lineTo()
1043 for (int cur = 0; cur < fPts.count(); ++cur) { in draw()
1044 int next = (cur + 1) % fPts.count(); in draw()
1047 tess.point(fPts[cur].fIndex), in draw()
1048 tess.point(fPts[next].fIndex), in draw()
1051 SkPoint mid = tess.point(fPts[cur].fIndex) + tess.point(fPts[next].fIndex); in draw()
1054 if (fPts.count()) { in draw()
1055 draw_arrow(canvas, mid, fPts[cur].fNorm, kArrowLength, SK_ColorRED); in draw()
1056 mid.fX += (kArrowLength/2) * fPts[cur].fNorm.fX; in draw()
1057 mid.fY += (kArrowLength/2) * fPts[cur].fNorm.fY; in draw()
1064 if (fPts.count()) { in draw()
1065 draw_arrow(canvas, tess.point(fPts[cur].fIndex), fPts[cur].fBisector, in draw()