Searched refs:lastTangent (Results 1 – 3 of 3) sorted by relevance
284 SkVector lastTangent; in fillSquareCapPoints() local289 lastTangent = lastPts[3] - lastPts[2]; in fillSquareCapPoints()290 if (!lastTangent.isZero()) { in fillSquareCapPoints()296 lastTangent = lastPts[2] - lastPts[1]; in fillSquareCapPoints()297 if (!lastTangent.isZero()) { in fillSquareCapPoints()302 lastTangent = lastPts[1] - lastPts[0]; in fillSquareCapPoints()303 SkASSERT(!lastTangent.isZero()); in fillSquareCapPoints()310 lastTangent *= (.5f * fStroke->getWidth()) / lastTangent.length(); in fillSquareCapPoints()313 lastTangent *= .5f / fViewMatrix->mapVector(lastTangent.fX, lastTangent.fY).length(); in fillSquareCapPoints()316 fEndingCapPts = {lastPoint, lastPoint + lastTangent}; in fillSquareCapPoints()
311 SkVector lastTangent = contourEndpoint - fLastControlPoint; in writeCaps() local314 lastTangent *= (.5f * stroke.getWidth()) / lastTangent.length(); in writeCaps()317 lastTangent *= in writeCaps()318 .5f / viewMatrix.mapVector(lastTangent.fX, lastTangent.fY).length(); in writeCaps()320 this->writeLineTo(strokeJoinType, contourEndpoint, contourEndpoint + lastTangent); in writeCaps()
470 SkVector lastTangent = p[0] - instance->fLastControlPoint; in verifyBuffers() local471 rotation += SkMeasureAngleBetweenVectors(lastTangent, tan0); in verifyBuffers()