Searched refs:distanceToSqd (Results 1 - 12 of 12) sorted by relevance

/external/skia/tests/
H A DStrokerTest.cpp242 } while (quad[0].distanceToSqd(quad[1]) < halfSquared);
246 } while (quad[0].distanceToSqd(quad[2]) < halfSquared
247 || quad[1].distanceToSqd(quad[2]) < halfSquared);
294 } while (cubic[0].distanceToSqd(cubic[1]) < halfSquared);
298 } while ( cubic[0].distanceToSqd(cubic[2]) < halfSquared
299 || cubic[1].distanceToSqd(cubic[2]) < halfSquared);
303 } while ( cubic[0].distanceToSqd(cubic[3]) < halfSquared
304 || cubic[1].distanceToSqd(cubic[3]) < halfSquared
305 || cubic[2].distanceToSqd(cubic[3]) < halfSquared);
/external/skia/src/gpu/
H A DGrDistanceFieldGenFromVector.cpp86 double distanceToSqd(const DPoint& pt) const { function in struct:DPoint
373 if (pts[0].distanceToSqd(pts[1]) < kCloseSqd ||
374 pts[1].distanceToSqd(pts[2]) < kCloseSqd ||
621 dist = (float)xformPt.distanceToSqd(x);
623 const float distToB0T = (float)xformPt.distanceToSqd(segment.fP0T);
624 const float distToB2T = (float)xformPt.distanceToSqd(segment.fP2T);
H A DGrPathUtils.cpp229 SkScalar maxD = qPts[0].distanceToSqd(qPts[1]);
231 SkScalar d = qPts[1].distanceToSqd(qPts[2]);
236 d = qPts[2].distanceToSqd(qPts[0]);
482 SkScalar dSqd = sublevel > kMaxSubdivs ? 0 : c0.distanceToSqd(c1);
504 SkScalar d0Sqd = c0.distanceToSqd(cAvg);
505 SkScalar d1Sqd = c1.distanceToSqd(cAvg);
/external/skia/src/core/
H A DSkPoint.cpp257 return b.distanceToSqd(*this);
H A DSkStroke.cpp492 return pt.distanceToSqd(lineStart);
501 return hit.distanceToSqd(pt);
972 return nearPt.distanceToSqd(farPt) <= limit * limit;
/external/skia/src/utils/
H A DSkShadowTessellator.cpp462 fFirstPoint.distanceToSqd(fPositions[fPrevUmbraIndex]) > kMaxEdgeLenSqr) {
646 nextPoint.distanceToSqd(fPositions[fPrevUmbraIndex]) > kMaxEdgeLenSqr) {
1155 SkScalar minDistance = p.distanceToSqd(fUmbraPolygon[fCurrUmbraPoint]);
1161 SkScalar distance = p.distanceToSqd(fUmbraPolygon[next]);
1171 distance = p.distanceToSqd(fUmbraPolygon[next]);
1176 distance = p.distanceToSqd(fUmbraPolygon[next]);
1196 SkScalar distSq = p0.distanceToSqd(p1);
H A DSkInsetConvexPolygon.cpp70 if (dD*dD >= p0.distanceToSqd(p1)) {
/external/skia/src/gpu/ops/
H A DGrAAConvexPathRenderer.cpp195 if (pt.distanceToSqd(data->fFirstPoint) > kCloseSqd) {
238 if (pts[0].distanceToSqd(pts[1]) < kCloseSqd || pts[1].distanceToSqd(pts[2]) < kCloseSqd) {
H A DGrAAHairLinePathRenderer.cpp178 if (p[0].distanceToSqd(p[1]) < gDegenerateToLineTolSqd ||
179 p[1].distanceToSqd(p[2]) < gDegenerateToLineTolSqd) {
H A DGrAAConvexTessellator.cpp58 SkScalar distSq = p0.distanceToSqd(p1);
/external/skia/include/core/
H A DSkPoint.h476 SkScalar distanceToSqd(const SkPoint& pt) const { function in struct:SkPoint
/external/skia/src/pathops/
H A DSkOpSegment.cpp1354 SkScalar distSq = ref->fPt.distanceToSqd(check->fPt);
1448 double seDistSq = SkTMax(pt1.distanceToSqd(pt2) * 2, FLT_EPSILON * 2);
1449 return midPt.distanceToSqd(pt1) > seDistSq || midPt.distanceToSqd(pt2) > seDistSq;

Completed in 308 milliseconds