Home
last modified time | relevance | path

Searched refs:distanceSquared (Results 1 – 24 of 24) sorted by relevance

/third_party/flutter/skia/src/pathops/
DSkOpCubicHull.cpp101 double dist1_0 = fPts[1].distanceSquared(fPts[0]); in convexHull()
102 double dist1_3 = fPts[1].distanceSquared(fPts[3]); in convexHull()
103 double dist2_0 = fPts[2].distanceSquared(fPts[0]); in convexHull()
104 double dist2_3 = fPts[2].distanceSquared(fPts[3]); in convexHull()
DSkIntersections.cpp19 double dist = testPt.distanceSquared(iPt); in closestTo()
DSkPathOpsTSect.cpp108 double startDist = test->pointFirst().distanceSquared(pt); in closestBoundedT()
113 double endDist = test->pointLast().distanceSquared(pt); in closestBoundedT()
1118 double distSq = thisRayI.pt(index).distanceSquared(oppRayI.pt(oIndex)); in linesIntersect()
1137 double distSq = oppIPt.distanceSquared(iPt); in linesIntersect()
1664 double dist = c1[c1Index].distanceSquared(c2[c2Index]); in findEnd()
DSkPathOpsPoint.h227 double distanceSquared(const SkDPoint& a) const { in distanceSquared() function
DSkPathOpsDebug.cpp1265 double testLenSq = testStartPt.distanceSquared(testEndPt); in debugCheckNearCoincidence()
1275 double distSq = testStartPt.distanceSquared(nextStartPt); in debugCheckNearCoincidence()
1287 double nextLenSq = nextStartPt.distanceSquared(nextEndPt); in debugCheckNearCoincidence()
DSkOpSegment.cpp522 double testDistSq = testPt.distanceSquared(i.pt(index)); in distSq()
/third_party/skia/src/pathops/
DSkOpCubicHull.cpp101 double dist1_0 = fPts[1].distanceSquared(fPts[0]); in convexHull()
102 double dist1_3 = fPts[1].distanceSquared(fPts[3]); in convexHull()
103 double dist2_0 = fPts[2].distanceSquared(fPts[0]); in convexHull()
104 double dist2_3 = fPts[2].distanceSquared(fPts[3]); in convexHull()
DSkIntersections.cpp19 double dist = testPt.distanceSquared(iPt); in closestTo()
DSkPathOpsTSect.cpp109 double startDist = test->pointFirst().distanceSquared(pt); in closestBoundedT()
114 double endDist = test->pointLast().distanceSquared(pt); in closestBoundedT()
1119 double distSq = thisRayI.pt(index).distanceSquared(oppRayI.pt(oIndex)); in linesIntersect()
1138 double distSq = oppIPt.distanceSquared(iPt); in linesIntersect()
1665 double dist = c1[c1Index].distanceSquared(c2[c2Index]); in findEnd()
DSkPathOpsPoint.h227 double distanceSquared(const SkDPoint& a) const { in distanceSquared() function
DSkPathOpsDebug.cpp1243 double testLenSq = testStartPt.distanceSquared(testEndPt); in debugCheckNearCoincidence()
1253 double distSq = testStartPt.distanceSquared(nextStartPt); in debugCheckNearCoincidence()
1265 double nextLenSq = nextStartPt.distanceSquared(nextEndPt); in debugCheckNearCoincidence()
DSkOpSegment.cpp522 double testDistSq = testPt.distanceSquared(i.pt(index)); in distSq()
/third_party/flutter/flutter/dev/manual_tests/lib/
Dmaterial_arc.dart97 return (arc.begin - position).distanceSquared < _kTargetSlop
98 || (arc.end - position).distanceSquared < _kTargetSlop;
141 final double startOffset = (box.localToGlobal(_begin) - position).distanceSquared;
142 final double endOffset = (box.localToGlobal(_end) - position).distanceSquared;
265 return (arc.begin.center - position).distanceSquared < _kTargetSlop
266 || (arc.end.center - position).distanceSquared < _kTargetSlop;
309 final double startOffset = (box.localToGlobal(_begin.center) - position).distanceSquared;
310 final double endOffset = (box.localToGlobal(_end.center) - position).distanceSquared;
/third_party/skia/src/gpu/
DGrDistanceFieldGenFromVector.cpp26 double distanceSquared(DPoint p) const { in distanceSquared() function
32 double distance(DPoint p) const { return sqrt(this->distanceSquared(p)); } in distance()
603 dist = (float)xformPt.distanceSquared(x); in distance_to_segment()
605 const float distToB0T = (float)xformPt.distanceSquared(segment.fP0T); in distance_to_segment()
606 const float distToB2T = (float)xformPt.distanceSquared(segment.fP2T); in distance_to_segment()
/third_party/skia/tests/
DPathOpsDPointTest.cpp44 REPORTER_ASSERT(reporter, pt.distanceSquared(p) == pt.fX * pt.fX + pt.fY * pt.fY); in DEF_TEST()
/third_party/flutter/skia/tests/
DPathOpsDPointTest.cpp44 REPORTER_ASSERT(reporter, pt.distanceSquared(p) == pt.fX * pt.fX + pt.fY * pt.fY); in DEF_TEST()
/third_party/flutter/flutter/packages/flutter/lib/src/gestures/
Dscale.dart180 final double speedSquared = velocity.pixelsPerSecond.distanceSquared;
405 if (pixelsPerSecond.distanceSquared > kMaxFlingVelocity * kMaxFlingVelocity)
Dmonodrag.dart541 return estimate.pixelsPerSecond.distanceSquared > minVelocity * minVelocity
542 && estimate.offset.distanceSquared > minDistance * minDistance;
Dvelocity_tracker.dart56 final double valueSquared = pixelsPerSecond.distanceSquared;
Dforce_press.dart257 } else if (event.delta.distanceSquared > kTouchSlop) {
/third_party/flutter/engine/flutter/lib/web_ui/lib/src/ui/
Dgeometry.dart148 /// consider using [distanceSquared] instead, since it is cheaper to compute.
154 double get distanceSquared => dx * dx + dy * dy;
/third_party/flutter/engine/flutter/lib/ui/
Dgeometry.dart146 /// consider using [distanceSquared] instead, since it is cheaper to compute.
152 double get distanceSquared => dx * dx + dy * dy;
/third_party/flutter/flutter/packages/flutter/lib/src/rendering/
Dproxy_box.dart1452 if (offset.distanceSquared > 0.25) // x^2 + y^2 > r^2
/third_party/flutter/engine/flutter/shell/platform/fuchsia/flutter/
Dcompilation_trace.txt2788 dart:ui,Offset,get:distanceSquared