Lines Matching refs:tangent
389 SkVector tangent = pts[1] - pts[0];
390 if (tangent.isZero()) {
394 tangent.scale(SkScalarInvert(length));
398 if (SK_Scalar1 == tangent.fX || -SK_Scalar1 == tangent.fX) {
400 } else if (SK_Scalar1 == tangent.fY || -SK_Scalar1 == tangent.fY) {
460 SkScalar x = pts[0].fX + SkScalarMul(tangent.fX, SkScalarHalf(clampedInitialDashLength));
461 SkScalar y = pts[0].fY + SkScalarMul(tangent.fY, SkScalarHalf(clampedInitialDashLength));
493 SkScalar x = pts[0].fX + SkScalarMul(tangent.fX, distance);
494 SkScalar y = pts[0].fY + SkScalarMul(tangent.fY, distance);
511 SkScalar x = pts[0].fX + SkScalarMul(tangent.fX, distance + SkScalarHalf(temp));
512 SkScalar y = pts[0].fY + SkScalarMul(tangent.fY, distance + SkScalarHalf(temp));