Searched refs:SkScalarSquare (Results 1 – 17 of 17) sorted by relevance
191 SkScalar dist = SkScalarSqrt(SkScalarSquare(x_dist) + in onFilterImage()192 SkScalarSquare(y_dist)); in onFilterImage()194 weight = SkMinScalar(SkScalarSquare(dist), SK_Scalar1); in onFilterImage()196 SkScalar sqDist = SkMinScalar(SkScalarSquare(x_dist), in onFilterImage()197 SkScalarSquare(y_dist)); in onFilterImage()
250 SkScalar dist = SkScalarSqrt(SkScalarSquare(x_dist) + in onFilterImage()251 SkScalarSquare(y_dist)); in onFilterImage()254 weight = SkTPin(SkScalarSquare(dist), 0.0f, SK_Scalar1); in onFilterImage()256 SkScalar sqDist = std::min(SkScalarSquare(x_dist), in onFilterImage()257 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()
207 (SkScalarSquare(transformed.fX) + SkScalarSquare(transformed.fY)) in fillScanLine()208 / (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()
254 return SkScalarNearlyZero(vec[0].dot(vec[1]), SkScalarSquare(tol)); in preservesRightAngles()
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()
30 const float twoSigmaSqrdX = 2.0f * SkScalarToFloat(SkScalarSquare(sigmaX)); in fill_in_2D_gaussian_kernel()31 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()
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()
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()
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()
106 static inline SkScalar SkScalarSquare(SkScalar x) { return x * x; } in SkScalarSquare() function
116 static inline SkScalar SkScalarSquare(SkScalar x) { return x * x; } in SkScalarSquare() function
1114 const SkScalar tolSqd = SkScalarSquare(tolScale); in convertCubicToQuads()
1111 const SkScalar tolSqd = SkScalarSquare(tolScale); in convertCubicToQuads()