Searched refs:distSq (Results 1 - 11 of 11) sorted by relevance
/external/skia/tests/ |
H A D | PathOpsLineParametetersTest.cpp | 54 double distSq = denormalizedDistance[inner]; local 55 distSq *= distSq; 58 if (AlmostEqualUlps(distSq, normalSquared * answersSq)) { 62 " distSq:%g answerSq:%g normalSquared:%g\n", 65 distSq, answersSq, normalSquared);
|
/external/skia/src/core/ |
H A D | SkDistanceFieldGen.cpp | 202 float distSq = check->fDistSq - 2.0f*(distVec.fX + distVec.fY - 1.0f); local 203 if (distSq < curr->fDistSq) { 206 curr->fDistSq = distSq; 213 distSq = check->fDistSq - 2.0f*distVec.fY + 1.0f; 214 if (distSq < curr->fDistSq) { 216 curr->fDistSq = distSq; 223 distSq = check->fDistSq + 2.0f*(distVec.fX - distVec.fY + 1.0f); 224 if (distSq < curr->fDistSq) { 227 curr->fDistSq = distSq; 234 distSq 248 float distSq = check->fDistSq + 2.0f*distVec.fX + 1.0f; local 262 float distSq = check->fDistSq - 2.0f*distVec.fX + 1.0f; local 276 float distSq = check->fDistSq + 2.0f*distVec.fX + 1.0f; local [all...] |
/external/skia/src/pathops/ |
H A D | SkPathOpsLine.cpp | 49 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 D | SkOpSegment.cpp | 491 double SkOpSegment::distSq(double t, const SkOpAngle* oppAngle) const { function in class:SkOpSegment 1356 SkScalar distSq = ref->fPt.distanceToSqd(check->fPt); local 1357 if (distSqBest > distSq && (refSeg != check->segment() 1359 distSqBest = distSq;
|
H A D | SkPathOpsTSect.h | 371 double distSq = (fPerpPt - cPt).lengthSquared(); local 373 if (dist2Sq < distSq) { 1467 double distSq = thisRayI.pt(index).distanceSquared(oppRayI.pt(oIndex)); local 1468 if (closest > distSq) { 1469 closest = distSq; 1486 double distSq = oppIPt.distanceSquared(iPt); local 1487 if (bestDistSq < distSq || ++loopCount > 5) { 1490 bestDistSq = distSq;
|
H A D | SkOpSegment.h | 190 double distSq(double t, const SkOpAngle* opp) const;
|
H A D | SkPathOpsDebug.cpp | 1270 double testMidDistSq = testSegment->distSq(testMidT, next); 1271 double testEndDistSq = testSegment->distSq(testEndT, next); 1274 double distSq = testStartPt.distanceSquared(nextStartPt); local 1277 double nextMidDistSq = nextSegment->distSq(nextMidT, test); 1278 double nextEndDistSq = nextSegment->distSq(nextEndT, test); 1279 SkDebugf("%s distSq=%1.9g testId=%d nextId=%d\n", __FUNCTION__, distSq,
|
/external/skia/samplecode/ |
H A D | SampleLitAtlas.cpp | 243 SkScalar distSq = (x - bigCenter.fX) * (x - bigCenter.fX) + local 245 if (distSq > kBigSize*kBigSize/4.0f) { 277 SkScalar distSq = (x - smCenter.fX) * (x - smCenter.fX) + local 279 if (distSq > kSmSize*kSmSize/4.0f) {
|
/external/skia/src/gpu/ |
H A D | GrDistanceFieldGenFromVector.cpp | 688 const float distSq = dataPtr[idx].fDistSq; local 689 int dilation = distSq < 1.5 * 1.5 ? 1 : 690 distSq < 2.5 * 2.5 ? 2 : 691 distSq < 3.5 * 3.5 ? 3 : SK_DistanceFieldPad; 713 if (currDistSq < distSq) {
|
/external/skia/src/utils/ |
H A D | SkShadowTessellator.cpp | 771 SkScalar distSq = fCentroid.distanceToLineSegmentBetweenSqd(currPoint, nextPoint); local 772 if (distSq < minDistSq) { 773 minDistSq = distSq; 1098 SkScalar distSq = p0.distanceToSqd(p1); local 1099 return distSq < kCloseSqd;
|
/external/skia/src/gpu/ops/ |
H A D | GrAAConvexTessellator.cpp | 58 SkScalar distSq = p0.distanceToSqd(p1); local 59 return distSq < kCloseSqd;
|
Completed in 251 milliseconds