Home
last modified time | relevance | path

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

123

/external/skqp/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()
/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()
/external/skqp/gm/
Dconicpaths.cpp26 const SkScalar w = SkScalarSqrt(2)/2; in onOnceBeforeDraw()
77 const SkScalar w = SkScalarSqrt(2)/2; in onOnceBeforeDraw()
Danimatedimageblurs.cpp90 fDir.fY = SkScalarSqrt(1.0f - fDir.fX * fDir.fX); in init()
/external/skia/src/core/
DSkPointPriv.h37 return SkScalarSqrt(DistanceToLineBetweenSqd(pt, a, b, side));
45 return SkScalarSqrt(DistanceToLineSegmentBetweenSqd(pt, a, b)); in DistanceToLineSegmentBetween()
DSkDistanceFieldGen.cpp142 distance = 0.5f*(dx + dy) - SkScalarSqrt(2.0f*dx*dy*alpha); in edge_distance()
149 distance = -0.5f*(dx + dy) + SkScalarSqrt(2.0f*dx*dy*(1.0f - alpha)); in edge_distance()
453 dist = -SkScalarSqrt(currData->fDistSq); in generate_distance_field_from_image()
455 dist = SkScalarSqrt(currData->fDistSq); in generate_distance_field_from_image()
DSkGeometry.cpp975 SkScalar theta = SkScalarACos(SkTPin(R / SkScalarSqrt(Q3), -1.0f, 1.0f)); in solve_cubic_poly()
976 SkScalar neg2RootQ = -2 * SkScalarSqrt(Q); in solve_cubic_poly()
987 SkScalar A = SkScalarAbs(R) + SkScalarSqrt(R2MinusQ3); in solve_cubic_poly()
1269 SkScalar root = SkScalarSqrt(tmp2[1].fZ); in chopAt()
1347 return SkScalarSqrt(SK_ScalarHalf + w * SK_ScalarHalf); in subdivide_w_value()
1408 SkScalar error = SkScalarSqrt(x * x + y * y); in computeQuadPOW2()
1418 SkScalar err = SkScalarSqrt(x * x + y * y); in computeQuadPOW2()
1707 const SkScalar cosThetaOver2 = SkScalarSqrt((1 + dot) / 2); in BuildUnitArc()
DSkImageFilterTypes.cpp49 scale = SkScalarSqrt(scale); in DecomposeCTM()
DSkPathBuilder.cpp427 SkScalar weight = SkScalarSqrt(SkDoubleToScalar(SK_ScalarHalf + cosh * 0.5)); in arcTo()
473 radiiScale = SkScalarSqrt(radiiScale); in arcTo()
488 SkScalar scaleFactor = SkScalarSqrt(scaleFactorSquared); in arcTo()
526 SkScalar w = SkScalarSqrt(SK_ScalarHalf + SkScalarCos(thetaWidth) * SK_ScalarHalf); in arcTo()
/external/skqp/src/core/
DSkPointPriv.h41 return SkScalarSqrt(DistanceToLineBetweenSqd(pt, a, b, side));
49 return SkScalarSqrt(DistanceToLineSegmentBetweenSqd(pt, a, b)); in DistanceToLineSegmentBetween()
DSkDistanceFieldGen.cpp141 distance = 0.5f*(dx + dy) - SkScalarSqrt(2.0f*dx*dy*alpha); in edge_distance()
148 distance = -0.5f*(dx + dy) + SkScalarSqrt(2.0f*dx*dy*(1.0f - alpha)); in edge_distance()
452 dist = -SkScalarSqrt(currData->fDistSq); in generate_distance_field_from_image()
454 dist = SkScalarSqrt(currData->fDistSq); in generate_distance_field_from_image()
DSkRTree.cpp78 int numStrips = SkScalarCeilToInt(SkScalarSqrt(SkIntToScalar(numBranches) / aspectRatio)); in CountNodes()
126 int numStrips = SkScalarCeilToInt(SkScalarSqrt(SkIntToScalar(numBranches) / fAspectRatio)); in bulkLoad()
DSkGeometry.cpp772 SkScalar theta = SkScalarACos(SkScalarPin(R / SkScalarSqrt(Q3), -1, 1)); in solve_cubic_poly()
773 SkScalar neg2RootQ = -2 * SkScalarSqrt(Q); in solve_cubic_poly()
784 SkScalar A = SkScalarAbs(R) + SkScalarSqrt(R2MinusQ3); in solve_cubic_poly()
1066 SkScalar root = SkScalarSqrt(tmp2[1].fZ); in chopAt()
1144 return SkScalarSqrt(SK_ScalarHalf + w * SK_ScalarHalf); in subdivide_w_value()
1205 SkScalar error = SkScalarSqrt(x * x + y * y); in computeQuadPOW2()
1215 SkScalar err = SkScalarSqrt(x * x + y * y); in computeQuadPOW2()
1467 const SkScalar cosThetaOver2 = SkScalarSqrt((1 + dot) / 2); in BuildUnitArc()
DSkPathMeasure.cpp212 SkScalar Sabc = 2 * SkScalarSqrt(A + B + C); in compute_quad_len()
213 SkScalar A_2 = SkScalarSqrt(A); in compute_quad_len()
215 SkScalar C_2 = 2 * SkScalarSqrt(C); in compute_quad_len()
/external/skia/gm/
Dconicpaths.cpp41 const SkScalar w = SkScalarSqrt(2)/2; in onOnceBeforeDraw()
92 const SkScalar w = SkScalarSqrt(2)/2; in onOnceBeforeDraw()
Danimatedimageblurs.cpp99 fDir.fY = SkScalarSqrt(1.0f - fDir.fX * fDir.fX); in init()
/external/skqp/src/shaders/
DSkPictureShader.cpp181 scale.set(SkScalarSqrt(m.getScaleX() * m.getScaleX() + m.getSkewX() * m.getSkewX()), in refBitmapShader()
182 SkScalarSqrt(m.getScaleY() * m.getScaleY() + m.getSkewY() * m.getSkewY())); in refBitmapShader()
191 SkScalar clampScale = SkScalarSqrt(kMaxTileArea / tileArea); in refBitmapShader()
/external/skqp/src/gpu/ccpr/
DGrCCStrokeGeometry.cpp21 return SkScalarSqrt(nn[0] + nn[1]); in length()
81 fMiterMaxCapHeightOverWidth = .5f * SkScalarSqrt(m*m - 1); in beginPath()
134 float f = SkScalarSqrt(k * length(p2 - p1*2 + p0)); in wangs_formula_quadratic()
248 float f = SkScalarSqrt(k * length(Sk2f::Max((p2 - p1*2 + p0).abs(), in wangs_formula_cubic()
/external/skqp/src/gpu/
DGrPathUtils.cpp62 SkScalar divSqrt = SkScalarSqrt(d / tol); in quadraticPointCount()
112 d = SkScalarSqrt(d); in cubicPointCount()
118 SkScalar divSqrt = SkScalarSqrt(d / tol); in cubicPointCount()
122 int temp = SkScalarCeilToInt(SkScalarSqrt(d / tol)); in cubicPointCount()
572 SkScalar d0d1 = SkScalarSqrt(d0Sqd * d1Sqd); in convert_noninflect_cubic_to_quads_with_constraint()
/external/skia/src/effects/
DSkEmbossMaskFilter.cpp20 SkScalar scale = SkScalarInvert(SkScalarSqrt(mag)); in normalize3()
/external/skia/tests/
DPathCoverageTest.cpp63 int temp = SkScalarCeilToInt(SkScalarSqrt(d / tol)); in compute_pointCount()
/external/skqp/tests/
DPathCoverageTest.cpp63 int temp = SkScalarCeilToInt(SkScalarSqrt(d / tol)); in compute_pointCount()
/external/skqp/src/effects/
DSkEmbossMaskFilter.cpp19 SkScalar scale = SkScalarInvert(SkScalarSqrt(mag)); in normalize3()
/external/skia/include/core/
DSkScalar.h41 #define SkScalarSqrt(x) sk_float_sqrt(x) macro
/external/skqp/include/core/
DSkScalar.h41 #define SkScalarSqrt(x) sk_float_sqrt(x) macro

123