Home
last modified time | relevance | path

Searched refs:lengthSqd (Results 1 – 8 of 8) sorted by relevance

/external/skia/src/core/
DSkPoint.cpp218 SkScalar uLengthSqd = u.lengthSqd(); in distanceToLineBetweenSqd()
252 SkScalar uLengthSqd = u.lengthSqd(); in distanceToLineSegmentBetweenSqd()
256 return v.lengthSqd(); in distanceToLineSegmentBetweenSqd()
DSkScalerContext.cpp734 if (diag[0].lengthSqd() <= SK_ScalarNearlyZero * SK_ScalarNearlyZero || in computeMatrices()
735 diag[1].lengthSqd() <= SK_ScalarNearlyZero * SK_ScalarNearlyZero || in computeMatrices()
736 diag[2].lengthSqd() <= SK_ScalarNearlyZero * SK_ScalarNearlyZero || in computeMatrices()
737 diag[3].lengthSqd() <= SK_ScalarNearlyZero * SK_ScalarNearlyZero) in computeMatrices()
DSkPath.cpp2277 SkScalar lengthSqd = vec.lengthSqd(); in addPt() local
2278 if (!SkScalarIsFinite(lengthSqd)) { in addPt()
2280 } else if (lengthSqd) { in addPt()
2339 if (!SkScalarNearlyZero(fLastVec.lengthSqd(), SK_ScalarNearlyZero*SK_ScalarNearlyZero) && in directionChange()
2340 !SkScalarNearlyZero(curVec.lengthSqd(), SK_ScalarNearlyZero*SK_ScalarNearlyZero) && in directionChange()
3211 if (SkScalarNearlyZero(tangent.lengthSqd())) { in contains()
DSkLightingShader.cpp715 SkASSERT(SkScalarNearlyEqual(invNormRotation.lengthSqd(), SK_Scalar1)); in Create()
DSkStroke.cpp953 SkScalar smallerLen = smaller.lengthSqd(); in sharp_angle()
954 SkScalar largerLen = larger.lengthSqd(); in sharp_angle()
/external/skia/src/gpu/
DGrPathUtils.cpp411 if (ab.lengthSqd() < SK_ScalarNearlyZero) { in convert_noninflect_cubic_to_quads()
412 if (dc.lengthSqd() < SK_ScalarNearlyZero) { in convert_noninflect_cubic_to_quads()
421 if (dc.lengthSqd() < SK_ScalarNearlyZero) { in convert_noninflect_cubic_to_quads()
434 bool doQuads = dc.lengthSqd() < SK_ScalarNearlyZero || in convert_noninflect_cubic_to_quads()
435 ab.lengthSqd() < SK_ScalarNearlyZero; in convert_noninflect_cubic_to_quads()
437 SkScalar invDALengthSqd = da.lengthSqd(); in convert_noninflect_cubic_to_quads()
/external/skia/samplecode/
DSampleHT.cpp38 return pt.lengthSqd() <= 1; in oval_contains()
/external/skia/include/core/
DSkPoint.h472 SkScalar lengthSqd() const { in lengthSqd() function