Searched defs:distSq (Results 1 - 8 of 8) sorted by relevance

/external/skia/tests/
H A DPathOpsLineParametetersTest.cpp52 double distSq = denormalizedDistance[inner]; local
53 distSq *= distSq;
56 if (AlmostEqualUlps(distSq, normalSquared * answersSq)) {
60 " distSq:%g answerSq:%g normalSquared:%g\n",
63 distSq, answersSq, normalSquared);
/external/skia/src/pathops/
H A DSkPathOpsLine.cpp49 double dist = realPt.distance(xy); // OPTIMIZATION: can we compare against distSq instead ?
73 double dist = realPt.distance(xy); // OPTIMIZATION: can we compare against distSq instead ?
105 double distSq = distU.fX * distU.fX + distU.fY * distU.fY; local
106 double dist = sqrt(distSq); // OPTIMIZATION: can we compare against distSq instead ?
140 double distSq = distU.fX * distU.fX + distU.fY * distU.fY; local
141 double dist = sqrt(distSq); // OPTIMIZATION: can we compare against distSq instead ?
H A DSkOpSegment.cpp582 double SkOpSegment::distSq(double t, const SkOpAngle* oppAngle) const { function in class:SkOpSegment
H A DSkPathOpsDebug.cpp978 double testMidDistSq = testSegment->distSq(testMidT, next);
979 double testEndDistSq = testSegment->distSq(testEndT, next);
982 double distSq = testStartPt.distanceSquared(nextStartPt); local
985 double nextMidDistSq = nextSegment->distSq(nextMidT, test);
986 double nextEndDistSq = nextSegment->distSq(nextEndT, test);
987 SkDebugf("%s distSq=%1.9g testId=%d nextId=%d\n", __FUNCTION__, distSq,
H A DSkPathOpsTSect.h349 double distSq = (fPerpPt - cPt).lengthSquared(); local
351 if (dist2Sq < distSq) {
1384 double distSq = thisRayI.pt(index).distanceSquared(oppRayI.pt(oIndex)); local
1385 if (closest > distSq) {
1386 closest = distSq;
1403 double distSq = oppIPt.distanceSquared(iPt); local
1404 if (bestDistSq < distSq || ++loopCount > 5) {
1407 bestDistSq = distSq;
/external/skia/src/effects/
H A DGrCircleBlurFragmentProcessor.cpp116 float distSq = x*x + y*y; local
117 if (distSq <= (radius-0.5f)*(radius-0.5f)) {
119 } else if (distSq >= (radius+0.5f)*(radius+0.5f)) {
122 float ramp = radius + 0.5f - sqrtf(distSq);
/external/skia/src/gpu/batches/
H A DGrAAConvexTessellator.cpp49 SkScalar distSq = p0.distanceToSqd(p1); local
50 return distSq < kCloseSqd;
/external/skia/src/core/
H A DSkDistanceFieldGen.cpp200 float distSq = check->fDistSq - 2.0f*(distVec.fX + distVec.fY - 1.0f); local
201 if (distSq < curr->fDistSq) {
204 curr->fDistSq = distSq;
211 distSq = check->fDistSq - 2.0f*distVec.fY + 1.0f;
212 if (distSq < curr->fDistSq) {
214 curr->fDistSq = distSq;
221 distSq = check->fDistSq + 2.0f*(distVec.fX - distVec.fY + 1.0f);
222 if (distSq < curr->fDistSq) {
225 curr->fDistSq = distSq;
232 distSq
245 float distSq = check->fDistSq; local
261 float distSq = check->fDistSq - 2.0f*distVec.fX + 1.0f; local
275 float distSq = check->fDistSq + 2.0f*distVec.fX + 1.0f; local
[all...]

Completed in 405 milliseconds