Home
last modified time | relevance | path

Searched refs:DistanceToSqd (Results 1 – 25 of 26) sorted by relevance

12

/external/skqp/tests/
DStrokerTest.cpp243 } while (SkPointPriv::DistanceToSqd(quad[0], quad[1]) < halfSquared); in DEF_TEST()
247 } while (SkPointPriv::DistanceToSqd(quad[0], quad[2]) < halfSquared in DEF_TEST()
248 || SkPointPriv::DistanceToSqd(quad[1], quad[2]) < halfSquared); in DEF_TEST()
295 } while (SkPointPriv::DistanceToSqd(cubic[0], cubic[1]) < halfSquared); in DEF_TEST()
299 } while ( SkPointPriv::DistanceToSqd(cubic[0], cubic[2]) < halfSquared in DEF_TEST()
300 || SkPointPriv::DistanceToSqd(cubic[1], cubic[2]) < halfSquared); in DEF_TEST()
304 } while ( SkPointPriv::DistanceToSqd(cubic[0], cubic[3]) < halfSquared in DEF_TEST()
305 || SkPointPriv::DistanceToSqd(cubic[1], cubic[3]) < halfSquared in DEF_TEST()
306 || SkPointPriv::DistanceToSqd(cubic[2], cubic[3]) < halfSquared); in DEF_TEST()
/external/skia/tests/
DStrokerTest.cpp243 } while (SkPointPriv::DistanceToSqd(quad[0], quad[1]) < halfSquared); in DEF_TEST()
247 } while (SkPointPriv::DistanceToSqd(quad[0], quad[2]) < halfSquared in DEF_TEST()
248 || SkPointPriv::DistanceToSqd(quad[1], quad[2]) < halfSquared); in DEF_TEST()
295 } while (SkPointPriv::DistanceToSqd(cubic[0], cubic[1]) < halfSquared); in DEF_TEST()
299 } while ( SkPointPriv::DistanceToSqd(cubic[0], cubic[2]) < halfSquared in DEF_TEST()
300 || SkPointPriv::DistanceToSqd(cubic[1], cubic[2]) < halfSquared); in DEF_TEST()
304 } while ( SkPointPriv::DistanceToSqd(cubic[0], cubic[3]) < halfSquared in DEF_TEST()
305 || SkPointPriv::DistanceToSqd(cubic[1], cubic[3]) < halfSquared in DEF_TEST()
306 || SkPointPriv::DistanceToSqd(cubic[2], cubic[3]) < halfSquared); in DEF_TEST()
/external/skia/src/gpu/
DGrPathUtils.cpp237 SkScalar maxD = SkPointPriv::DistanceToSqd(qPts[0], qPts[1]); in set()
239 SkScalar d = SkPointPriv::DistanceToSqd(qPts[1], qPts[2]); in set()
244 d = SkPointPriv::DistanceToSqd(qPts[2], qPts[0]); in set()
433 SkScalar dSqd = sublevel > kMaxSubdivs ? 0 : SkPointPriv::DistanceToSqd(c0, c1); in convert_noninflect_cubic_to_quads()
548 SkScalar dSqd = sublevel > kMaxSubdivs ? 0 : SkPointPriv::DistanceToSqd(c0, c1); in convert_noninflect_cubic_to_quads_with_constraint()
566 SkScalar d0Sqd = SkPointPriv::DistanceToSqd(c0, cAvg); in convert_noninflect_cubic_to_quads_with_constraint()
567 SkScalar d1Sqd = SkPointPriv::DistanceToSqd(c1, cAvg); in convert_noninflect_cubic_to_quads_with_constraint()
DGrDistanceFieldGenFromVector.cpp374 if (SkPointPriv::DistanceToSqd(pts[0], pts[1]) < kCloseSqd || in add_quad_segment()
375 SkPointPriv::DistanceToSqd(pts[1], pts[2]) < kCloseSqd || in add_quad_segment()
/external/skqp/src/gpu/
DGrPathUtils.cpp237 SkScalar maxD = SkPointPriv::DistanceToSqd(qPts[0], qPts[1]); in set()
239 SkScalar d = SkPointPriv::DistanceToSqd(qPts[1], qPts[2]); in set()
244 d = SkPointPriv::DistanceToSqd(qPts[2], qPts[0]); in set()
433 SkScalar dSqd = sublevel > kMaxSubdivs ? 0 : SkPointPriv::DistanceToSqd(c0, c1); in convert_noninflect_cubic_to_quads()
548 SkScalar dSqd = sublevel > kMaxSubdivs ? 0 : SkPointPriv::DistanceToSqd(c0, c1); in convert_noninflect_cubic_to_quads_with_constraint()
566 SkScalar d0Sqd = SkPointPriv::DistanceToSqd(c0, cAvg); in convert_noninflect_cubic_to_quads_with_constraint()
567 SkScalar d1Sqd = SkPointPriv::DistanceToSqd(c1, cAvg); in convert_noninflect_cubic_to_quads_with_constraint()
DGrDistanceFieldGenFromVector.cpp374 if (SkPointPriv::DistanceToSqd(pts[0], pts[1]) < kCloseSqd || in add_quad_segment()
375 SkPointPriv::DistanceToSqd(pts[1], pts[2]) < kCloseSqd || in add_quad_segment()
/external/skqp/src/utils/
DSkShadowTessellator.cpp148 SkScalar distSq = SkPointPriv::DistanceToSqd(p0, p1); in duplicate_pt()
525 SkScalar minDistance = SkPointPriv::DistanceToSqd(p, umbraPolygon[fCurrUmbraIndex]); in getClosestUmbraIndex()
531 SkScalar distance = SkPointPriv::DistanceToSqd(p, umbraPolygon[next]); in getClosestUmbraIndex()
541 distance = SkPointPriv::DistanceToSqd(p, umbraPolygon[next]); in getClosestUmbraIndex()
546 distance = SkPointPriv::DistanceToSqd(p, umbraPolygon[next]); in getClosestUmbraIndex()
/external/skia/src/utils/
DSkShadowTessellator.cpp148 SkScalar distSq = SkPointPriv::DistanceToSqd(p0, p1); in duplicate_pt()
525 SkScalar minDistance = SkPointPriv::DistanceToSqd(p, umbraPolygon[fCurrUmbraIndex]); in getClosestUmbraIndex()
531 SkScalar distance = SkPointPriv::DistanceToSqd(p, umbraPolygon[next]); in getClosestUmbraIndex()
541 distance = SkPointPriv::DistanceToSqd(p, umbraPolygon[next]); in getClosestUmbraIndex()
546 distance = SkPointPriv::DistanceToSqd(p, umbraPolygon[next]); in getClosestUmbraIndex()
/external/skia/src/core/
DSkPoint.cpp151 return DistanceToSqd(b, pt); in DistanceToLineSegmentBetweenSqd()
DSkPointPriv.h48 static SkScalar DistanceToSqd(const SkPoint& pt, const SkPoint& a) { in DistanceToSqd() function
DSkGeometry.cpp879 return (SkPointPriv::DistanceToSqd(src[1], src[0]) + SkPointPriv::DistanceToSqd(src[2], src[1]) in calc_cubic_precision()
880 + SkPointPriv::DistanceToSqd(src[3], src[2])) * 1e-8f; in calc_cubic_precision()
DSkStroke.cpp510 return SkPointPriv::DistanceToSqd(hit, pt); in pt_to_line()
512 return SkPointPriv::DistanceToSqd(pt, lineStart); in pt_to_line()
972 return SkPointPriv::DistanceToSqd(nearPt, farPt) <= limit * limit; in points_within_dist()
/external/skqp/src/core/
DSkPoint.cpp207 return DistanceToSqd(b, pt); in DistanceToLineSegmentBetweenSqd()
DSkPointPriv.h52 static SkScalar DistanceToSqd(const SkPoint& pt, const SkPoint& a) { in DistanceToSqd() function
DSkGeometry.cpp879 return (SkPointPriv::DistanceToSqd(src[1], src[0]) + SkPointPriv::DistanceToSqd(src[2], src[1]) in calc_cubic_precision()
880 + SkPointPriv::DistanceToSqd(src[3], src[2])) * 1e-8f; in calc_cubic_precision()
DSkStroke.cpp503 return SkPointPriv::DistanceToSqd(pt, lineStart); in pt_to_line()
512 return SkPointPriv::DistanceToSqd(hit, pt); in pt_to_line()
976 return SkPointPriv::DistanceToSqd(nearPt, farPt) <= limit * limit; in points_within_dist()
/external/skqp/src/gpu/ops/
DGrAAConvexPathRenderer.cpp203 if (SkPointPriv::DistanceToSqd(pt, data->fFirstPoint) > kCloseSqd) { in update_degenerate_test()
246 if (SkPointPriv::DistanceToSqd(pts[0], pts[1]) < kCloseSqd || in add_quad_segment()
247 SkPointPriv::DistanceToSqd(pts[1], pts[2]) < kCloseSqd) { in add_quad_segment()
DGrAAHairLinePathRenderer.cpp184 if (SkPointPriv::DistanceToSqd(p[0], p[1]) < gDegenerateToLineTolSqd || in is_degen_quad_or_conic()
185 SkPointPriv::DistanceToSqd(p[1], p[2]) < gDegenerateToLineTolSqd) { in is_degen_quad_or_conic()
DGrAAConvexTessellator.cpp58 SkScalar distSq = SkPointPriv::DistanceToSqd(p0, p1); in duplicate_pt()
/external/skia/src/gpu/ops/
DGrAAConvexPathRenderer.cpp202 if (SkPointPriv::DistanceToSqd(pt, data->fFirstPoint) > kCloseSqd) { in update_degenerate_test()
245 if (SkPointPriv::DistanceToSqd(pts[0], pts[1]) < kCloseSqd || in add_quad_segment()
246 SkPointPriv::DistanceToSqd(pts[1], pts[2]) < kCloseSqd) { in add_quad_segment()
DGrAAHairLinePathRenderer.cpp183 if (SkPointPriv::DistanceToSqd(p[0], p[1]) < gDegenerateToLineTolSqd || in is_degen_quad_or_conic()
184 SkPointPriv::DistanceToSqd(p[1], p[2]) < gDegenerateToLineTolSqd) { in is_degen_quad_or_conic()
DGrAAConvexTessellator.cpp58 SkScalar distSq = SkPointPriv::DistanceToSqd(p0, p1); in duplicate_pt()
/external/skqp/src/pathops/
DSkOpSegment.cpp1413 SkScalar distSq = SkPointPriv::DistanceToSqd(ref->fPt, check->fPt); in spansNearby()
1510 double seDistSq = SkTMax(SkPointPriv::DistanceToSqd(pt1, pt2) * 2, FLT_EPSILON * 2); in ptsDisjoint()
1511 return SkPointPriv::DistanceToSqd(midPt, pt1) > seDistSq || in ptsDisjoint()
1512 SkPointPriv::DistanceToSqd(midPt, pt2) > seDistSq; in ptsDisjoint()
/external/skia/src/pathops/
DSkOpSegment.cpp1413 SkScalar distSq = SkPointPriv::DistanceToSqd(ref->fPt, check->fPt); in spansNearby()
1510 double seDistSq = SkTMax(SkPointPriv::DistanceToSqd(pt1, pt2) * 2, FLT_EPSILON * 2); in ptsDisjoint()
1511 return SkPointPriv::DistanceToSqd(midPt, pt1) > seDistSq || in ptsDisjoint()
1512 SkPointPriv::DistanceToSqd(midPt, pt2) > seDistSq; in ptsDisjoint()
/external/skqp/tools/fonts/
DSkTestSVGTypeface.cpp947 SkScalar dSqd = sublevel > kMaxSubdivs ? 0 : SkPointPriv::DistanceToSqd(c0, c1); in convert_noninflect_cubic_to_quads()

12