Home
last modified time | relevance | path

Searched refs:SkScalarSqrt (Results 1 – 25 of 30) sorted by relevance

12

/external/skia/src/utils/
DSkMatrix22.cpp27 SkScalar u = SkScalarCopySign(SkScalarSqrt(SK_Scalar1 + t*t), b); in SkComputeGivensRotation()
33 SkScalar u = SkScalarCopySign(SkScalarSqrt(SK_Scalar1 + t*t), a); in SkComputeGivensRotation()
DSkCamera.cpp36 SkScalar mag = SkScalarSqrt(fX*fX + fY*fY + fZ*fZ); in normalize()
/external/skia/src/gpu/
DGrPathUtils.cpp53 SkScalar divSqrt = SkScalarSqrt(d / tol); in quadraticPointCount()
105 d = SkScalarSqrt(d); in cubicPointCount()
109 SkScalar divSqrt = SkScalarSqrt(d / tol); in cubicPointCount()
113 int temp = SkScalarCeilToInt(SkScalarSqrt(d / tol)); in cubicPointCount()
517 SkScalar d0d1 = SkScalarSqrt(SkScalarMul(d0Sqd, d1Sqd)); in convert_noninflect_cubic_to_quads()
602 SkScalar tempSqrt = SkScalarSqrt(9.f * d[1] * d[1] - 12.f * d[0] * d[2]); in set_serp_klm()
637 SkScalar tempSqrt = SkScalarSqrt(4.f * d[0] * d[2] - 3.f * d[1] * d[1]); in set_loop_klm()
734 SkScalar tempSqrt = SkScalarSqrt(4.f * d[0] * d[2] - 3.f * d[1] * d[1]); in chopCubicAtLoopIntersection()
DGrOvalRenderer.cpp1295 SkScalar geoDx = SK_ScalarHalf / SkScalarSqrt(a*a + c*c); in create_diellipse_batch()
1296 SkScalar geoDy = SK_ScalarHalf / SkScalarSqrt(b*b + d*d); in create_diellipse_batch()
/external/skia/gm/
Dconicpaths.cpp26 const SkScalar w = SkScalarSqrt(2)/2; in onOnceBeforeDraw()
77 const SkScalar w = SkScalarSqrt(2)/2; in onOnceBeforeDraw()
Dbeziereffects.cpp147 int numCols = SkScalarCeilToInt(SkScalarSqrt(SkIntToScalar(kNumCubics*3))); in onDraw()
290 int numCols = SkScalarCeilToInt(SkScalarSqrt(SkIntToScalar(kNumConics*3))); in onDraw()
528 int numCols = SkScalarCeilToInt(SkScalarSqrt(SkIntToScalar(kNumQuads*3))); in onDraw()
Daddarc.cpp42 SkScalar speed = SkScalarSqrt(16 / r.width()) * 0.5f; in onDraw()
Dpictureimagegenerator.cpp45 (kVerticalSpacing + SkScalarSqrt(3) / 2) * accentSize; in draw_vector_logo()
/external/skia/src/core/
DSkDistanceFieldGen.cpp134 distance = 0.5f*(dx + dy) - SkScalarSqrt(2.0f*dx*dy*alpha); in edge_distance()
141 distance = -0.5f*(dx + dy) + SkScalarSqrt(2.0f*dx*dy*(1.0f - alpha)); in edge_distance()
446 dist = -SkScalarSqrt(currData->fDistSq); in generate_distance_field_from_image()
448 dist = SkScalarSqrt(currData->fDistSq); in generate_distance_field_from_image()
DSkGeometry.cpp90 R = SkScalarSqrt(R); in SkFindUnitQuadRoots()
746 SkScalar theta = SkScalarACos(R / SkScalarSqrt(Q3)); in solve_cubic_poly()
747 SkScalar neg2RootQ = -2 * SkScalarSqrt(Q); in solve_cubic_poly()
770 SkScalar A = SkScalarAbs(R) + SkScalarSqrt(R2MinusQ3); in solve_cubic_poly()
1000 SkScalar root = SkScalarSqrt(tmp2[1].fZ); in chopAt()
1073 return SkScalarSqrt(SK_ScalarHalf + w * SK_ScalarHalf); in subdivide_w_value()
1127 SkScalar error = SkScalarSqrt(x * x + y * y); in computeQuadPOW2()
1137 SkScalar err = SkScalarSqrt(x * x + y * y); in computeQuadPOW2()
1259 w = SkScalarSqrt((w1 * w1) / (w0 * w2)); in TransformW()
1328 const SkScalar cosThetaOver2 = SkScalarSqrt((1 + dot) / 2); in BuildUnitArc()
DSkRTree.cpp77 int numStrips = SkScalarCeilToInt(SkScalarSqrt(SkIntToScalar(numBranches) / aspectRatio)); in CountNodes()
125 int numStrips = SkScalarCeilToInt(SkScalarSqrt(SkIntToScalar(numBranches) / fAspectRatio)); in bulkLoad()
DSkPictureShader.cpp175 scale.set(SkScalarSqrt(m.getScaleX() * m.getScaleX() + m.getSkewX() * m.getSkewX()), in refBitmapShader()
176 SkScalarSqrt(m.getScaleY() * m.getScaleY() + m.getSkewY() * m.getSkewY())); in refBitmapShader()
185 SkScalar clampScale = SkScalarSqrt(kMaxTileArea / tileArea); in refBitmapShader()
DSkPathMeasure.cpp126 SkScalar Sabc = 2 * SkScalarSqrt(A + B + C); in compute_quad_len()
127 SkScalar A_2 = SkScalarSqrt(A); in compute_quad_len()
129 SkScalar C_2 = 2 * SkScalarSqrt(C); in compute_quad_len()
DSkMatrix.cpp1053 return SkScalarSqrt(d0 * d1); in mapRadius()
1466 SkScalar x = SkScalarHalf(SkScalarSqrt(aminusc * aminusc + 4 * bSqd)); in get_scale_factor()
1480 results[0] = SkScalarSqrt(results[0]); in get_scale_factor()
1486 results[1] = SkScalarSqrt(results[1]); in get_scale_factor()
1704 SkScalar reciplen = SkScalarInvert(SkScalarSqrt(cosQ*cosQ + sinQ*sinQ)); in SkDecomposeUpper2x2()
1739 SkScalar reciplen = SkScalarInvert(SkScalarSqrt(cos1*cos1 + sin1*sin1)); in SkDecomposeUpper2x2()
DSkStrokerPriv.cpp200 sinHalfAngle = SkScalarSqrt(SkScalarHalf(SK_Scalar1 + dotProd)); in MiterJoiner()
DSkMipMap.cpp381 const SkScalar scale = SkScalarSqrt(scaleSize.width() * scaleSize.height()); in extractLevel()
DSkPath.cpp1350 radiiScale = SkScalarSqrt(radiiScale); in arcTo()
1365 SkScalar scaleFactor = SkScalarSqrt(scaleFactorSquared); in arcTo()
1393 SkScalar w = SkScalarSqrt(SK_ScalarHalf + SkScalarCos(thetaWidth) * SK_ScalarHalf); in arcTo()
1466 SkScalar weight = SkScalarSqrt(SK_ScalarHalf + cosh * SK_ScalarHalf); in arcTo()
/external/skia/include/core/
DSkScalar.h50 #define SkScalarSqrt(x) sk_float_sqrt(x) macro
93 #define SkScalarSqrt(x) sqrt(x) macro
DSkPoint.h509 return SkScalarSqrt(this->distanceToLineBetweenSqd(a, b, side));
523 return SkScalarSqrt(this->distanceToLineSegmentBetweenSqd(a, b)); in distanceToLineSegmentBetween()
/external/skia/tests/
DPathCoverageTest.cpp63 int temp = SkScalarCeilToInt(SkScalarSqrt(d / tol)); in compute_pointCount()
/external/skia/src/effects/
DSkEmbossMaskFilter.cpp61 mag = SkScalarSqrt(mag); in normalize()
DSkMagnifierImageFilter.cpp341 SkScalar dist = SkScalarSqrt(SkScalarSquare(x_dist) + in onFilterImageDeprecated()
/external/skia/src/animator/
DSkDisplayMath.cpp204 scalarResult = SkScalarSqrt(input); in executeFunction()
DSkAnimateActive.cpp318 SkScalar originalDistance = SkScalarSqrt(originalSum); in pickUp()
319 SkScalar workingDistance = SkScalarSqrt(workingSum); in pickUp()
/external/skia/src/pathops/
DSkPathOpsCubic.cpp238 SkScalar tempSqrt = SkScalarSqrt(4.f * d[0] * d[2] - 3.f * d[1] * d[1]); in ComplexBreak()

12