Lines Matching refs:tangent
208 SkVector tangent = pts[1] - pts[0]; in onAsPoints() local
209 if (tangent.isZero()) { in onAsPoints()
213 tangent.scale(SkScalarInvert(length)); in onAsPoints()
217 if (SkScalarNearlyEqual(SK_Scalar1, tangent.fX) || in onAsPoints()
218 SkScalarNearlyEqual(-SK_Scalar1, tangent.fX)) { in onAsPoints()
220 } else if (SkScalarNearlyEqual(SK_Scalar1, tangent.fY) || in onAsPoints()
221 SkScalarNearlyEqual(-SK_Scalar1, tangent.fY)) { in onAsPoints()
288 SkScalar x = pts[0].fX + tangent.fX * SkScalarHalf(clampedInitialDashLength); in onAsPoints()
289 SkScalar y = pts[0].fY + tangent.fY * SkScalarHalf(clampedInitialDashLength); in onAsPoints()
321 SkScalar x = pts[0].fX + tangent.fX * distance; in onAsPoints()
322 SkScalar y = pts[0].fY + tangent.fY * distance; in onAsPoints()
339 SkScalar x = pts[0].fX + tangent.fX * (distance + SkScalarHalf(temp)); in onAsPoints()
340 SkScalar y = pts[0].fY + tangent.fY * (distance + SkScalarHalf(temp)); in onAsPoints()