Home
last modified time | relevance | path

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

/external/skia/src/core/
DSkPoint.cpp217 SkScalar uLengthSqd = u.lengthSqd(); in distanceToLineBetweenSqd()
251 SkScalar uLengthSqd = u.lengthSqd(); in distanceToLineSegmentBetweenSqd()
255 return v.lengthSqd(); in distanceToLineSegmentBetweenSqd()
DSkScalerContext.cpp715 if (diag[0].lengthSqd() <= SK_ScalarNearlyZero * SK_ScalarNearlyZero || in computeMatrices()
716 diag[1].lengthSqd() <= SK_ScalarNearlyZero * SK_ScalarNearlyZero || in computeMatrices()
717 diag[2].lengthSqd() <= SK_ScalarNearlyZero * SK_ScalarNearlyZero || in computeMatrices()
718 diag[3].lengthSqd() <= SK_ScalarNearlyZero * SK_ScalarNearlyZero) in computeMatrices()
DSkPath.cpp2312 SkScalar lengthSqd = vec.lengthSqd(); in addPt() local
2313 if (!SkScalarIsFinite(lengthSqd)) { in addPt()
2315 } else if (lengthSqd) { in addPt()
2374 if (!SkScalarNearlyZero(fLastVec.lengthSqd(), SK_ScalarNearlyZero*SK_ScalarNearlyZero) && in directionChange()
2375 !SkScalarNearlyZero(curVec.lengthSqd(), SK_ScalarNearlyZero*SK_ScalarNearlyZero) && in directionChange()
3246 if (SkScalarNearlyZero(tangent.lengthSqd())) { in contains()
DSkStroke.cpp976 SkScalar smallerLen = smaller.lengthSqd(); in sharp_angle()
977 SkScalar largerLen = larger.lengthSqd(); in sharp_angle()
/external/skia/src/gpu/
DGrPathUtils.cpp410 if (ab.lengthSqd() < SK_ScalarNearlyZero) { in convert_noninflect_cubic_to_quads()
411 if (dc.lengthSqd() < SK_ScalarNearlyZero) { in convert_noninflect_cubic_to_quads()
420 if (dc.lengthSqd() < SK_ScalarNearlyZero) { in convert_noninflect_cubic_to_quads()
433 bool doQuads = dc.lengthSqd() < SK_ScalarNearlyZero || in convert_noninflect_cubic_to_quads()
434 ab.lengthSqd() < SK_ScalarNearlyZero; in convert_noninflect_cubic_to_quads()
436 SkScalar invDALengthSqd = da.lengthSqd(); in convert_noninflect_cubic_to_quads()
/external/skia/src/utils/
DSkInsetConvexPolygon.cpp78 SkScalar dPlenSq = dP.lengthSqd(); in SkOffsetSegment()
85 dPlenSq = dP.lengthSqd(); in SkOffsetSegment()
/external/skia/samplecode/
DSampleHT.cpp38 return pt.lengthSqd() <= 1; in oval_contains()
DSampleLitAtlas.cpp75 if (newVel.lengthSqd() > kMaxShipSpeed*kMaxShipSpeed) { in thrust()
DSampleAAGeometry.cpp1301 SkScalar lenSq = adjOpp.lengthSqd(); in pt_to_line()
/external/skia/include/core/
DSkPoint.h472 SkScalar lengthSqd() const { in lengthSqd() function