Home | History | Annotate | Download | only in core

Lines Matching refs:Distance

100                           SkScalar distance, int mint, int maxt, int ptIndex) {
106 distance = this->compute_quad_segs(tmp, distance, mint, halft, ptIndex);
107 distance = this->compute_quad_segs(&tmp[2], distance, halft, maxt, ptIndex);
109 SkScalar d = SkPoint::Distance(pts[0], pts[2]);
112 distance += d;
114 seg->fDistance = distance;
120 return distance;
124 SkScalar distance, int mint, int maxt, int ptIndex) {
130 distance = this->compute_cubic_segs(tmp, distance, mint, halft, ptIndex);
131 distance = this->compute_cubic_segs(&tmp[3], distance, halft, maxt, ptIndex);
133 SkScalar d = SkPoint::Distance(pts[0], pts[3]);
136 distance += d;
138 seg->fDistance = distance;
144 return distance;
150 SkScalar d, distance = 0;
170 d = SkPoint::Distance(pts[0], pts[1]);
172 distance += d;
174 seg->fDistance = distance;
183 distance = this->compute_quad_segs(pts, distance, 0,
190 distance = this->compute_cubic_segs(pts, distance, 0,
206 fLength = distance;
215 SkScalar distance = 0;
218 SkASSERT(seg->fDistance > distance);
229 distance = seg->fDistance;
383 SkScalar distance, SkScalar* t) {
385 SkASSERT(distance >= 0 && distance <= length);
390 int index = SkTSearch<SkScalar>(&seg->fDistance, count, distance,
408 SkASSERT(distance >= startD);
412 distance - startD,
417 bool SkPathMeasure::getPosTan(SkScalar distance, SkPoint* pos,
431 // pin the distance to a legal range
432 if (distance < 0) {
433 distance = 0;
434 } else if (distance > length) {
435 distance = length;
439 const Segment* seg = this->distanceToSegment(distance, &t);
445 bool SkPathMeasure::getMatrix(SkScalar distance, SkMatrix* matrix,
450 if (this->getPosTan(distance, &position, &tangent)) {
529 SkDebugf("pathmeas: seg[%d] distance=%g, point=%d, t=%g, type=%d\n",