Lines Matching refs:fNorms

122     fNorms.rewind();  in rewind()
134 fBisectors.setCount(fNorms.count()); in computeBisectors()
138 fBisectors[cur] = fNorms[cur] + fNorms[prev]; in computeBisectors()
141 fBisectors[cur].setOrthog(fNorms[cur], (SkPoint::Side)-fSide); in computeBisectors()
143 other.setOrthog(fNorms[prev], fSide); in computeBisectors()
242 SkASSERT(edgeIdx < fNorms.count()); in computeDepthFromEdge()
245 SkScalar depth = -fNorms[edgeIdx].dot(v); in computeDepthFromEdge()
256 const SkPoint& norm = fNorms[edgeIdx]; in computePtAlongBisector()
296 fNorms.setReserve(path.countPoints()); in extractFromPath()
332 fNorms.pop(); in extractFromPath()
335 SkASSERT(fPts.count() == fNorms.count()+1); in extractFromPath()
337 if (abs_dist_from_line(fPts.top(), fNorms.top(), fPts[0]) < kClose) { in extractFromPath()
340 fNorms.pop(); in extractFromPath()
343 *fNorms.push() = fPts[0] - fPts.top(); in extractFromPath()
344 SkDEBUGCODE(SkScalar len =) SkPoint::Normalize(&fNorms.top()); in extractFromPath()
346 SkASSERT(fPts.count() == fNorms.count()); in extractFromPath()
349 if (this->numPts() >= 3 && abs_dist_from_line(fPts[0], fNorms.top(), fPts[1]) < kClose) { in extractFromPath()
352 fNorms.removeShuffle(0); in extractFromPath()
353 fNorms[0] = fPts[1] - fPts[0]; in extractFromPath()
354 SkDEBUGCODE(SkScalar len =) SkPoint::Normalize(&fNorms[0]); in extractFromPath()
356 SkASSERT(SkScalarNearlyEqual(1.0f, fNorms[0].length())); in extractFromPath()
361 SkScalar cross = SkPoint::CrossProduct(fNorms[0], fNorms.top()); in extractFromPath()
369 for (int cur = 0; cur < fNorms.count(); ++cur) { in extractFromPath()
370 fNorms[cur].setOrthog(fNorms[cur], fSide); in extractFromPath()
371 SkASSERT(SkScalarNearlyEqual(1.0f, fNorms[cur].length())); in extractFromPath()
385 for (int cur = 0; cur < fNorms.count(); ++cur) { in extractFromPath()
386 fNorms[cur].setOrthog(fNorms[cur], fSide); in extractFromPath()
387 SkASSERT(SkScalarNearlyEqual(1.0f, fNorms[cur].length())); in extractFromPath()
390 fNorms.push(SkPoint::Make(-fNorms[0].fX, -fNorms[0].fY)); in extractFromPath()
403 fInitialRing.init(fNorms, fBisectors); in extractFromPath()
831 SkASSERT(fPts.count() <= 1 || fPts.count() == fNorms.count()+1); in lineTo()
833 abs_dist_from_line(fPts.top(), fNorms.top(), p) < kClose) { in lineTo()
836 fNorms.pop(); in lineTo()
849 *fNorms.push() = fPts.top() - fPts[fPts.count()-2]; in lineTo()
850 SkDEBUGCODE(SkScalar len =) SkPoint::Normalize(&fNorms.top()); in lineTo()
852 SkASSERT(SkScalarNearlyEqual(1.0f, fNorms.top().length())); in lineTo()