Lines Matching refs:tangent
203 SkVector tangent = pts[1] - pts[0];
204 if (tangent.isZero()) {
208 tangent.scale(SkScalarInvert(length));
212 if (SkScalarNearlyEqual(SK_Scalar1, tangent.fX) ||
213 SkScalarNearlyEqual(-SK_Scalar1, tangent.fX)) {
215 } else if (SkScalarNearlyEqual(SK_Scalar1, tangent.fY) ||
216 SkScalarNearlyEqual(-SK_Scalar1, tangent.fY)) {
283 SkScalar x = pts[0].fX + tangent.fX * SkScalarHalf(clampedInitialDashLength);
284 SkScalar y = pts[0].fY + tangent.fY * SkScalarHalf(clampedInitialDashLength);
316 SkScalar x = pts[0].fX + tangent.fX * distance;
317 SkScalar y = pts[0].fY + tangent.fY * distance;
334 SkScalar x = pts[0].fX + tangent.fX * (distance + SkScalarHalf(temp));
335 SkScalar y = pts[0].fY + tangent.fY * (distance + SkScalarHalf(temp));