Home | History | Annotate | Download | only in core

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);
98 SkScalar d = SkPoint::Distance(pts[0], pts[2]);
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);
122 SkScalar d = SkPoint::Distance(pts[0], pts[3]);
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).
166 SkScalar d = SkPoint::Distance(pts[0], pts[1]);
168 SkScalar prevD = distance;
169 distance += d;
170 if (distance > prevD) {
172 seg->fDistance = distance;
182 SkScalar prevD = distance;
183 distance = this->compute_quad_segs(pts, distance, 0,
185 if (distance > prevD) {
192 SkScalar prevD = distance;
193 distance = this->compute_cubic_segs(pts, distance, 0,
195 if (distance > prevD) {
211 fLength = distance;
220 SkScalar distance = 0;
223 SkASSERT(seg->fDistance > distance);
234 distance = seg->fDistance;
385 SkScalar distance, SkScalar* t) {
387 SkASSERT(distance >= 0 && distance <= length);
392 int index = SkTSearch<SkScalar>(&seg->fDistance, count, distance,
410 SkASSERT(distance >= startD);
414 distance - startD,
419 bool SkPathMeasure::getPosTan(SkScalar distance, SkPoint* pos,
432 // pin the distance to a legal range
433 if (distance < 0) {
434 distance = 0;
435 } else if (distance > length) {
436 distance = length;
440 const Segment* seg = this->distanceToSegment(distance, &t);
446 bool SkPathMeasure::getMatrix(SkScalar distance, SkMatrix* matrix,
455 if (this->getPosTan(distance, &position, &tangent)) {
534 SkDebugf("pathmeas: seg[%d] distance=%g, point=%d, t=%g, type=%d\n",