Lines Matching refs:distance

89                           SkScalar distance, int mint, int maxt, int ptIndex) {
95 distance = this->compute_quad_segs(tmp, distance, mint, halft, ptIndex);
96 distance = this->compute_quad_segs(&tmp[2], distance, halft, maxt, ptIndex);
99 SkScalar prevD = distance;
100 distance += d;
101 if (distance > prevD) {
103 seg->fDistance = distance;
109 return distance;
113 SkScalar distance, int mint, int maxt, int ptIndex) {
119 distance = this->compute_cubic_segs(tmp, distance, mint, halft, ptIndex);
120 distance = this->compute_cubic_segs(&tmp[3], distance, halft, maxt, ptIndex);
123 SkScalar prevD = distance;
124 distance += d;
125 if (distance > prevD) {
127 seg->fDistance = distance;
133 return distance;
139 SkScalar distance = 0;
145 * as we accumulate distance, we have to check that the result of +=
147 * still have no effect on distance (if distance >>> delta).
171 SkScalar prevD = distance;
172 distance += d;
173 if (distance > prevD) {
175 seg->fDistance = distance;
185 SkScalar prevD = distance;
186 distance = this->compute_quad_segs(pts, distance, 0,
188 if (distance > prevD) {
195 SkScalar prevD = distance;
196 distance = this->compute_cubic_segs(pts, distance, 0,
198 if (distance > prevD) {
214 fLength = distance;
223 SkScalar distance = 0;
226 SkASSERT(seg->fDistance > distance);
237 distance = seg->fDistance;
388 SkScalar distance, SkScalar* t) {
390 SkASSERT(distance >= 0 && distance <= length);
395 int index = SkTSearch<SkScalar>(&seg->fDistance, count, distance, sizeof(Segment));
412 SkASSERT(distance >= startD);
416 distance - startD,
421 bool SkPathMeasure::getPosTan(SkScalar distance, SkPoint* pos,
434 // pin the distance to a legal range
435 if (distance < 0) {
436 distance = 0;
437 } else if (distance > length) {
438 distance = length;
442 const Segment* seg = this->distanceToSegment(distance, &t);
448 bool SkPathMeasure::getMatrix(SkScalar distance, SkMatrix* matrix,
457 if (this->getPosTan(distance, &position, &tangent)) {
536 SkDebugf("pathmeas: seg[%d] distance=%g, point=%d, t=%g, type=%d\n",