Lines Matching refs:tangent
402 SkScalar t, SkPoint* pos, SkVector* tangent) { in compute_pos_tan() argument
409 if (tangent) { in compute_pos_tan()
410 tangent->setNormalize(pts[1].fX - pts[0].fX, pts[1].fY - pts[0].fY); in compute_pos_tan()
414 SkEvalQuadAt(pts, t, pos, tangent); in compute_pos_tan()
415 if (tangent) { in compute_pos_tan()
416 tangent->normalize(); in compute_pos_tan()
420 SkConic(pts[0], pts[2], pts[3], pts[1].fX).evalAt(t, pos, tangent); in compute_pos_tan()
421 if (tangent) { in compute_pos_tan()
422 tangent->normalize(); in compute_pos_tan()
426 SkEvalCubicAt(pts, t, pos, tangent, nullptr); in compute_pos_tan()
427 if (tangent) { in compute_pos_tan()
428 tangent->normalize(); in compute_pos_tan()
552 bool SkContourMeasure::getPosTan(SkScalar distance, SkPoint* pos, SkVector* tangent) const { in getPosTan()
574 compute_pos_tan(&fPts[seg->fPtIndex], seg->fType, t, pos, tangent); in getPosTan()
580 SkVector tangent; in getMatrix() local
582 if (this->getPosTan(distance, &position, &tangent)) { in getMatrix()
585 matrix->setSinCos(tangent.fY, tangent.fX, 0, 0); in getMatrix()