Searched refs:SkScalarSquare (Results 1 – 17 of 17) sorted by relevance
165 SkScalar dist = SkScalarSqrt(SkScalarSquare(x_dist) + in onFilterImage()166 SkScalarSquare(y_dist)); in onFilterImage()168 weight = SkMinScalar(SkScalarSquare(dist), SK_Scalar1); in onFilterImage()170 SkScalar sqDist = SkMinScalar(SkScalarSquare(x_dist), in onFilterImage()171 SkScalarSquare(y_dist)); in onFilterImage()
197 SkScalar dist = SkScalarSqrt(SkScalarSquare(x_dist) + in onFilterImage()198 SkScalarSquare(y_dist)); in onFilterImage()201 weight = SkTPin(SkScalarSquare(dist), 0.0f, SK_Scalar1); in onFilterImage()203 SkScalar sqDist = std::min(SkScalarSquare(x_dist), in onFilterImage()204 SkScalarSquare(y_dist)); in onFilterImage()
19 SkScalar mag = SkScalarSquare(src[0]) + SkScalarSquare(src[1]) + SkScalarSquare(src[2]); in normalize3()
18 SkScalar mag = SkScalarSquare(src[0]) + SkScalarSquare(src[1]) + SkScalarSquare(src[2]); in normalize3()
202 (SkScalarSquare(transformed.fX) + SkScalarSquare(transformed.fY)) in fillScanLine()203 / (1.0f - SkScalarSquare(tempNorm.fZ)); in fillScanLine()
286 SkScalar dist = SkScalarSquare(canonicalPt.fX) * SkScalarSquare(fRadii[index].fY) + in checkCornerContainment()287 SkScalarSquare(canonicalPt.fY) * SkScalarSquare(fRadii[index].fX); in checkCornerContainment()288 return dist <= SkScalarSquare(fRadii[index].fX * fRadii[index].fY); in checkCornerContainment()
258 return SkScalarNearlyZero(vec[0].dot(vec[1]), SkScalarSquare(tol)); in preservesRightAngles()
424 detABSqd = SkScalarSquare(detABSqd); in convert_noninflect_cubic_to_quads_with_constraint()426 detDCSqd = SkScalarSquare(detDCSqd); in convert_noninflect_cubic_to_quads_with_constraint()524 const SkScalar tolSqd = SkScalarSquare(tolScale); in convertCubicToQuads()545 const SkScalar tolSqd = SkScalarSquare(tolScale); in convertCubicToQuadsConstrainToTangents()
315 SkScalar dist = SkScalarSquare(canonicalPt.fX) * SkScalarSquare(fRadii[index].fY) + in checkCornerContainment()316 SkScalarSquare(canonicalPt.fY) * SkScalarSquare(fRadii[index].fX); in checkCornerContainment()317 return dist <= SkScalarSquare(fRadii[index].fX * fRadii[index].fY); in checkCornerContainment()
25 const float twoSigmaSqrdX = 2.0f * SkScalarToFloat(SkScalarSquare(sigmaX)); in fill_in_2D_gaussian_kernel()26 const float twoSigmaSqrdY = 2.0f * SkScalarToFloat(SkScalarSquare(sigmaY)); in fill_in_2D_gaussian_kernel()
250 return SkScalarNearlyZero(vec[0].dot(vec[1]), SkScalarSquare(tol)); in preservesRightAngles()
505 detABSqd = SkScalarSquare(detABSqd); in convert_noninflect_cubic_to_quads_with_constraint()507 detDCSqd = SkScalarSquare(detDCSqd); in convert_noninflect_cubic_to_quads_with_constraint()605 const SkScalar tolSqd = SkScalarSquare(tolScale); in convertCubicToQuads()626 const SkScalar tolSqd = SkScalarSquare(tolScale); in convertCubicToQuadsConstrainToTangents()
106 static inline SkScalar SkScalarSquare(SkScalar x) { return x * x; } in SkScalarSquare() function
240 const float twoSigmaSqrdX = 2.0f * SkScalarToFloat(SkScalarSquare(sigmaX)); in fill_in_2D_gaussian_kernel()241 const float twoSigmaSqrdY = 2.0f * SkScalarToFloat(SkScalarSquare(sigmaY)); in fill_in_2D_gaussian_kernel()
123 static inline SkScalar SkScalarSquare(SkScalar x) { return x * x; } in SkScalarSquare() function
972 const SkScalar tolSqd = SkScalarSquare(tolScale); in convertCubicToQuads()
1113 const SkScalar tolSqd = SkScalarSquare(tolScale); in convertCubicToQuads()