Lines Matching refs:segb
138 Segment& segb = (*segments)[b];
141 int n = segb.countPoints();
143 segb.fNorms[p] = segb.fPts[p] - *prevPt;
144 segb.fNorms[p].normalize();
145 segb.fNorms[p].setOrthog(segb.fNorms[p], normSide);
146 prevPt = &segb.fPts[p];
148 if (Segment::kLine == segb.fType) {
162 Segment& segb = (*segments)[b];
163 segb.fMid = segb.fNorms[0] + sega.endNorm();
164 segb.fMid.normalize();
364 const Segment& segb = segments[b];
369 if (Segment::kLine == segb.fType) {
385 verts[*v + 2].fPos = verts[*v + 0].fPos + segb.fMid;
386 verts[*v + 3].fPos = verts[*v + 0].fPos + segb.fNorms[0];
406 if (Segment::kLine == segb.fType) {
409 verts[*v + 2].fPos = segb.fPts[0];
411 verts[*v + 3].fPos = verts[*v + 1].fPos + segb.fNorms[0];
412 verts[*v + 4].fPos = verts[*v + 2].fPos + segb.fNorms[0];
453 SkPoint qpts[] = {sega.endPt(), segb.fPts[0], segb.fPts[1]};
455 SkVector midVec = segb.fNorms[0] + segb.fNorms[1];
461 verts[*v + 3].fPos = qpts[0] + segb.fNorms[0];
462 verts[*v + 4].fPos = qpts[2] + segb.fNorms[1];
465 SkScalar c = segb.fNorms[0].dot(qpts[0]);
466 verts[*v + 0].fD0 = -segb.fNorms[0].dot(fanPt) + c;
468 verts[*v + 2].fD0 = -segb.fNorms[0].dot(qpts[2]) + c;
473 c = segb.fNorms[1].dot(qpts[2]);
474 verts[*v + 0].fD1 = -segb.fNorms[1].dot(fanPt) + c;
475 verts[*v + 1].fD1 = -segb.fNorms[1].dot(qpts[0]) + c;