Home | History | Annotate | Download | only in core

Lines Matching refs:tangent

421 /* Extend the points in the direction of the starting or ending tangent by 1/2 unit to
423 the control point, use the next control point to create a tangent. If the curve
434 SkVector tangent;
436 tangent = *first - *++ctrl;
437 } while (tangent.isZero() && --controls > 0);
438 if (tangent.isZero()) {
439 tangent.set(1, 0);
442 tangent.normalize();
445 first->fX += tangent.fX * capOutset;
446 first->fY += tangent.fY * capOutset;
454 SkVector tangent;
456 tangent = *last - *--ctrl;
457 } while (tangent.isZero() && --controls > 0);
458 if (tangent.isZero()) {
459 tangent.set(-1, 0);
462 tangent.normalize();
465 last->fX += tangent.fX * capOutset;
466 last->fY += tangent.fY * capOutset;