Home
last modified time | relevance | path

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

12

/third_party/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()
/third_party/skia/src/core/
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()
DSkPointPriv.h37 return SkScalarSqrt(DistanceToLineBetweenSqd(pt, a, b, side));
45 return SkScalarSqrt(DistanceToLineSegmentBetweenSqd(pt, a, b)); in DistanceToLineSegmentBetween()
DSkGeometry.cpp971 SkScalar theta = SkScalarACos(SkTPin(R / SkScalarSqrt(Q3), -1.0f, 1.0f)); in solve_cubic_poly()
972 SkScalar neg2RootQ = -2 * SkScalarSqrt(Q); in solve_cubic_poly()
983 SkScalar A = SkScalarAbs(R) + SkScalarSqrt(R2MinusQ3); in solve_cubic_poly()
1265 SkScalar root = SkScalarSqrt(tmp2[1].fZ); in chopAt()
1343 return SkScalarSqrt(SK_ScalarHalf + w * SK_ScalarHalf); in subdivide_w_value()
1404 SkScalar error = SkScalarSqrt(x * x + y * y); in computeQuadPOW2()
1414 SkScalar err = SkScalarSqrt(x * x + y * y); in computeQuadPOW2()
1703 const SkScalar cosThetaOver2 = SkScalarSqrt((1 + dot) / 2); in BuildUnitArc()
DSkPathBuilder.cpp444 SkScalar weight = SkScalarSqrt(SkDoubleToScalar(SK_ScalarHalf + cosh * 0.5)); in arcTo()
490 radiiScale = SkScalarSqrt(radiiScale); in arcTo()
505 SkScalar scaleFactor = SkScalarSqrt(scaleFactorSquared); in arcTo()
543 SkScalar w = SkScalarSqrt(SK_ScalarHalf + SkScalarCos(thetaWidth) * SK_ScalarHalf); in arcTo()
DSkImageFilterTypes.cpp56 scale = SkScalarSqrt(scale); in decomposeCTM()
DSkMatrix.cpp1189 return SkScalarSqrt(d0 * d1); in mapRadius()
1508 SkScalar x = SkScalarHalf(SkScalarSqrt(aminusc * aminusc + 4 * bSqd)); in get_scale_factor()
1527 results[0] = SkScalarSqrt(results[0]); in get_scale_factor()
1535 results[1] = SkScalarSqrt(results[1]); in get_scale_factor()
1745 SkScalar reciplen = SkScalarInvert(SkScalarSqrt(cosQ*cosQ + sinQ*sinQ)); in SkDecomposeUpper2x2()
1780 SkScalar reciplen = SkScalarInvert(SkScalarSqrt(cos1*cos1 + sin1*sin1)); in SkDecomposeUpper2x2()
DSkStrokerPriv.cpp185 sinHalfAngle = SkScalarSqrt(SkScalarHalf(SK_Scalar1 + dotProd)); in MiterJoiner()
DSkPath.cpp1200 radiiScale = SkScalarSqrt(radiiScale); in arcTo()
1215 SkScalar scaleFactor = SkScalarSqrt(scaleFactorSquared); in arcTo()
1253 SkScalar w = SkScalarSqrt(SK_ScalarHalf + SkScalarCos(thetaWidth) * SK_ScalarHalf); in arcTo()
1361 SkScalar weight = SkScalarSqrt(SkDoubleToScalar(SK_ScalarHalf + cosh * 0.5)); in arcTo()
/third_party/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()
Dpictureimagegenerator.cpp69 (kVerticalSpacing + SkScalarSqrt(3) / 2) * accentSize; in draw_vector_logo()
Daddarc.cpp53 SkScalar speed = SkScalarSqrt(16 / r.width()) * 0.5f; in onDraw()
/third_party/skia/tests/
DPathCoverageTest.cpp63 int temp = SkScalarCeilToInt(SkScalarSqrt(d / tol)); in compute_pointCount()
/third_party/skia/src/effects/
DSkEmbossMaskFilter.cpp20 SkScalar scale = SkScalarInvert(SkScalarSqrt(mag)); in normalize3()
/third_party/skia/include/core/
DSkScalar.h41 #define SkScalarSqrt(x) sk_float_sqrt(x) macro
DSkM44.h41 SkScalar length() const { return SkScalarSqrt(this->lengthSquared()); } in length()
83 SkScalar length() const { return SkScalarSqrt(Dot(*this, *this)); } in length()
/third_party/skia/src/effects/imagefilters/
DSkMagnifierImageFilter.cpp250 SkScalar dist = SkScalarSqrt(SkScalarSquare(x_dist) + in onFilterImage()
/third_party/skia/bench/
DBulkRectBench.cpp196 int gridSize = SkScalarCeilToInt(SkScalarSqrt(kRectCount)); in onDelayedSetup()
/third_party/skia/samplecode/
DSample3D.cpp42 SkScalar z = SkScalarSqrt(1 - len2); in computeUnitV3()
DSampleClip.cpp147 SkScalar len = SkScalarSqrt(fA*fA + fB*fB); in twoPts()
/third_party/skia/src/pdf/
DSkPDFShader.cpp288 rasterScale *= SkScalarSqrt((float)kMaxBitmapArea / bitmapArea); in make_fallback_shader()
/third_party/skia/src/shaders/
DSkPictureShader.cpp196 SkScalar clampScale = SkScalarSqrt(kMaxTileArea / tileArea); in Make()
/third_party/skia/modules/svg/src/
DSkSVGRenderContext.cpp34 return rsqrt2 * SkScalarSqrt(w * w + h * h); in length_size_for_type()
/third_party/skia/src/gpu/geometry/
DGrPathUtils.cpp491 SkScalar d0d1 = SkScalarSqrt(d0Sqd * d1Sqd); in convert_noninflect_cubic_to_quads_with_constraint()

12