Home
last modified time | relevance | path

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

12

/third_party/skia/tests/
DStrokerTest.cpp245 } while (SkPointPriv::DistanceToSqd(quad[0], quad[1]) < halfSquared); in DEF_TEST()
249 } while (SkPointPriv::DistanceToSqd(quad[0], quad[2]) < halfSquared in DEF_TEST()
250 || SkPointPriv::DistanceToSqd(quad[1], quad[2]) < halfSquared); in DEF_TEST()
297 } while (SkPointPriv::DistanceToSqd(cubic[0], cubic[1]) < halfSquared); in DEF_TEST()
301 } while ( SkPointPriv::DistanceToSqd(cubic[0], cubic[2]) < halfSquared in DEF_TEST()
302 || SkPointPriv::DistanceToSqd(cubic[1], cubic[2]) < halfSquared); in DEF_TEST()
306 } while ( SkPointPriv::DistanceToSqd(cubic[0], cubic[3]) < halfSquared in DEF_TEST()
307 || SkPointPriv::DistanceToSqd(cubic[1], cubic[3]) < halfSquared in DEF_TEST()
308 || SkPointPriv::DistanceToSqd(cubic[2], cubic[3]) < halfSquared); in DEF_TEST()
/third_party/flutter/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()
/third_party/skia/src/gpu/geometry/
DGrPathUtils.cpp156 SkScalar maxD = SkPointPriv::DistanceToSqd(qPts[0], qPts[1]); in set()
158 SkScalar d = SkPointPriv::DistanceToSqd(qPts[1], qPts[2]); in set()
163 d = SkPointPriv::DistanceToSqd(qPts[2], qPts[0]); in set()
352 SkScalar dSqd = sublevel > kMaxSubdivs ? 0 : SkPointPriv::DistanceToSqd(c0, c1); in convert_noninflect_cubic_to_quads()
467 SkScalar dSqd = sublevel > kMaxSubdivs ? 0 : SkPointPriv::DistanceToSqd(c0, c1); in convert_noninflect_cubic_to_quads_with_constraint()
485 SkScalar d0Sqd = SkPointPriv::DistanceToSqd(c0, cAvg); in convert_noninflect_cubic_to_quads_with_constraint()
486 SkScalar d1Sqd = SkPointPriv::DistanceToSqd(c1, cAvg); in convert_noninflect_cubic_to_quads_with_constraint()
DGrAAConvexTessellator.cpp59 SkScalar distSq = SkPointPriv::DistanceToSqd(p0, p1); in duplicate_pt()
/third_party/flutter/skia/src/gpu/geometry/
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()
/third_party/skia/src/utils/
DSkShadowTessellator.cpp146 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()
/third_party/flutter/skia/src/utils/
DSkShadowTessellator.cpp149 SkScalar distSq = SkPointPriv::DistanceToSqd(p0, p1); in duplicate_pt()
528 SkScalar minDistance = SkPointPriv::DistanceToSqd(p, umbraPolygon[fCurrUmbraIndex]); in getClosestUmbraIndex()
534 SkScalar distance = SkPointPriv::DistanceToSqd(p, umbraPolygon[next]); in getClosestUmbraIndex()
544 distance = SkPointPriv::DistanceToSqd(p, umbraPolygon[next]); in getClosestUmbraIndex()
549 distance = SkPointPriv::DistanceToSqd(p, umbraPolygon[next]); in getClosestUmbraIndex()
/third_party/flutter/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()
/third_party/skia/src/core/
DSkPoint.cpp158 return DistanceToSqd(b, pt); in DistanceToLineSegmentBetweenSqd()
DSkPointPriv.h48 static SkScalar DistanceToSqd(const SkPoint& pt, const SkPoint& a) { in DistanceToSqd() function
DSkGeometry.cpp1078 return (SkPointPriv::DistanceToSqd(src[1], src[0]) + SkPointPriv::DistanceToSqd(src[2], src[1]) in calc_cubic_precision()
1079 + SkPointPriv::DistanceToSqd(src[3], src[2])) * 1e-8f; in calc_cubic_precision()
DSkStroke.cpp543 return SkPointPriv::DistanceToSqd(hit, pt); in pt_to_line()
545 return SkPointPriv::DistanceToSqd(pt, lineStart); in pt_to_line()
1005 return SkPointPriv::DistanceToSqd(nearPt, farPt) <= limit * limit; in points_within_dist()
/third_party/skia/src/pathops/
DSkOpSegment.cpp1413 SkScalar distSq = SkPointPriv::DistanceToSqd(ref->fPt, check->fPt); in spansNearby()
1510 double seDistSq = std::max(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()
/third_party/flutter/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()
/third_party/skia/src/gpu/
DGrDistanceFieldGenFromVector.cpp359 if (SkPointPriv::DistanceToSqd(pts[0], pts[1]) < kCloseSqd || in add_quad()
360 SkPointPriv::DistanceToSqd(pts[1], pts[2]) < kCloseSqd || in add_quad()
/third_party/flutter/skia/src/gpu/
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()
/third_party/flutter/skia/src/gpu/ops/
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()
DGrAAConvexPathRenderer.cpp203 if (SkPointPriv::DistanceToSqd(pt, data->fFirstPoint) > kCloseSqd) { in update_degenerate_test()
DGrAAConvexTessellator.cpp58 SkScalar distSq = SkPointPriv::DistanceToSqd(p0, p1); in duplicate_pt()
/third_party/skia/src/gpu/ops/
DAAHairLinePathRenderer.cpp193 if (SkPointPriv::DistanceToSqd(p[0], p[1]) < gDegenerateToLineTolSqd || in is_degen_quad_or_conic()
194 SkPointPriv::DistanceToSqd(p[1], p[2]) < gDegenerateToLineTolSqd) { in is_degen_quad_or_conic()
DAAConvexPathRenderer.cpp206 if (SkPointPriv::DistanceToSqd(pt, data->fFirstPoint) > kCloseSqd) { in update_degenerate_test()
/third_party/flutter/skia/tools/fonts/
DTestSVGTypeface.cpp1086 SkScalar dSqd = sublevel > kMaxSubdivs ? 0 : SkPointPriv::DistanceToSqd(c0, c1); in convert_noninflect_cubic_to_quads()

12