Lines Matching refs:pts
59 static bool cull_line(SkPoint* pts, const SkStrokeRec& rec,
67 SkScalar dx = pts[1].x() - pts[0].x();
68 SkScalar dy = pts[1].y() - pts[0].y();
77 // cullRect is in device space while pts are in the local coordinate system
90 SkScalar minX = pts[0].fX;
91 SkScalar maxX = pts[1].fX;
117 pts[0].fX = minX;
118 pts[1].fX = maxX;
121 SkScalar minY = pts[0].fY;
122 SkScalar maxY = pts[1].fY;
148 pts[0].fY = minY;
149 pts[1].fY = maxY;
181 SkPoint pts[2];
183 if (!src.isLine(pts)) {
198 if (!cull_line(pts, rec, matrix, cullRect, fIntervalLength)) {
202 SkScalar length = SkPoint::Distance(pts[1], pts[0]);
204 SkVector tangent = pts[1] - pts[0];
277 SkScalar x = pts[0].fX + SkScalarMul(tangent.fX, SkScalarHalf(clampedInitialDashLength));
278 SkScalar y = pts[0].fY + SkScalarMul(tangent.fY, SkScalarHalf(clampedInitialDashLength));
310 SkScalar x = pts[0].fX + SkScalarMul(tangent.fX, distance);
311 SkScalar y = pts[0].fY + SkScalarMul(tangent.fY, distance);
328 SkScalar x = pts[0].fX + SkScalarMul(tangent.fX, distance + SkScalarHalf(temp));
329 SkScalar y = pts[0].fY + SkScalarMul(tangent.fY, distance + SkScalarHalf(temp));