Searched refs:firstTangent (Results 1 – 2 of 2) sorted by relevance
321 SkVector firstTangent = fFirstPtsInContour[1] - fFirstPtsInContour[0]; in fillSquareCapPoints() local322 if (firstTangent.isZero()) { in fillSquareCapPoints()325 firstTangent = fFirstPtsInContour[2] - fFirstPtsInContour[0]; in fillSquareCapPoints()326 if (firstTangent.isZero()) { in fillSquareCapPoints()328 firstTangent = fFirstPtsInContour[3] - fFirstPtsInContour[0]; in fillSquareCapPoints()329 SkASSERT(!firstTangent.isZero()); in fillSquareCapPoints()334 firstTangent *= (-.5f * fStroke->getWidth()) / firstTangent.length(); in fillSquareCapPoints()337 firstTangent *= in fillSquareCapPoints()338 -.5f / fViewMatrix->mapVector(firstTangent.fX, firstTangent.fY).length(); in fillSquareCapPoints()340 fBeginningCapPts = {fFirstPtsInContour[0] + firstTangent, fFirstPtsInContour[0]}; in fillSquareCapPoints()
330 SkVector firstTangent = fCurrContourFirstControlPoint - fCurrContourStartPoint; in writeCaps() local333 firstTangent *= (-.5f * stroke.getWidth()) / firstTangent.length(); in writeCaps()336 firstTangent *= in writeCaps()337 -.5f / viewMatrix.mapVector(firstTangent.fX, firstTangent.fY).length(); in writeCaps()340 fCurrContourStartPoint + firstTangent); in writeCaps()