Lines Matching refs:tangent
238 SkPathMeasure& measure, SkPoint* position, SkVector* tangent) {
245 bool ok = measure.getPosTan(x + hOffset + glyph->mBitmapLeft + halfWidth, position, tangent);
250 // Move along the tangent and offset by the normal
251 destination[0].set(-tangent->fX * halfWidth - tangent->fY * vOffset,
252 -tangent->fY * halfWidth + tangent->fX * vOffset);
253 destination[1].set(tangent->fX * halfWidth - tangent->fY * vOffset,
254 tangent->fY * halfWidth + tangent->fX * vOffset);
255 destination[2].set(destination[1].fX + tangent->fY * height,
256 destination[1].fY - tangent->fX * height);
257 destination[3].set(destination[0].fX + tangent->fY * height,
258 destination[0].fY - tangent->fX * height);
312 SkVector tangent;
339 drawCachedGlyph(cachedGlyph, penX, hOffset, vOffset, measure, &position, &tangent);