Home
last modified time | relevance | path

Searched refs:LengthSqd (Results 1 – 22 of 22) sorted by relevance

/external/skia/src/core/
DSkPoint.cpp104 SkScalar uLengthSqd = LengthSqd(u); in DistanceToLineBetweenSqd()
117 return LengthSqd(v); in DistanceToLineBetweenSqd()
143 SkScalar uLengthSqd = LengthSqd(u); in DistanceToLineSegmentBetweenSqd()
148 return LengthSqd(v); in DistanceToLineSegmentBetweenSqd()
160 return LengthSqd(v); in DistanceToLineSegmentBetweenSqd()
DSkPointPriv.h63 static SkScalar LengthSqd(const SkPoint& pt) { in LengthSqd() function
DSkStroke.cpp978 SkScalar smallerLen = SkPointPriv::LengthSqd(smaller); in sharp_angle()
979 SkScalar largerLen = SkPointPriv::LengthSqd(larger); in sharp_angle()
DSkPath.cpp2368 SkScalar lengthSqd = SkPointPriv::LengthSqd(vec); in addPt()
2430 if (!SkScalarNearlyZero(SkPointPriv::LengthSqd(fLastVec), in directionChange()
2432 !SkScalarNearlyZero(SkPointPriv::LengthSqd(curVec), in directionChange()
3657 if (SkScalarNearlyZero(SkPointPriv::LengthSqd(tangent))) { in contains()
DSkGeometry.cpp928 SkScalar dPtMagnitude = SkPointPriv::LengthSqd(dPt); in SkFindCubicCusp()
/external/skqp/src/core/
DSkPoint.cpp160 SkScalar uLengthSqd = LengthSqd(u); in DistanceToLineBetweenSqd()
173 return LengthSqd(v); in DistanceToLineBetweenSqd()
199 SkScalar uLengthSqd = LengthSqd(u); in DistanceToLineSegmentBetweenSqd()
204 return LengthSqd(v); in DistanceToLineSegmentBetweenSqd()
216 return LengthSqd(v); in DistanceToLineSegmentBetweenSqd()
DSkPointPriv.h67 static SkScalar LengthSqd(const SkPoint& pt) { in LengthSqd() function
DSkStroke.cpp982 SkScalar smallerLen = SkPointPriv::LengthSqd(smaller); in sharp_angle()
983 SkScalar largerLen = SkPointPriv::LengthSqd(larger); in sharp_angle()
DSkPath.cpp2368 SkScalar lengthSqd = SkPointPriv::LengthSqd(vec); in addPt()
2430 if (!SkScalarNearlyZero(SkPointPriv::LengthSqd(fLastVec), in directionChange()
2432 !SkScalarNearlyZero(SkPointPriv::LengthSqd(curVec), in directionChange()
3657 if (SkScalarNearlyZero(SkPointPriv::LengthSqd(tangent))) { in contains()
DSkGeometry.cpp928 SkScalar dPtMagnitude = SkPointPriv::LengthSqd(dPt); in SkFindCubicCusp()
/external/skia/src/gpu/
DGrPathUtils.cpp409 if (SkPointPriv::LengthSqd(ab) < SK_ScalarNearlyZero) { in convert_noninflect_cubic_to_quads()
410 if (SkPointPriv::LengthSqd(dc) < SK_ScalarNearlyZero) { in convert_noninflect_cubic_to_quads()
419 if (SkPointPriv::LengthSqd(dc) < SK_ScalarNearlyZero) { in convert_noninflect_cubic_to_quads()
474 if (SkPointPriv::LengthSqd(ab) < SK_ScalarNearlyZero) { in convert_noninflect_cubic_to_quads_with_constraint()
475 if (SkPointPriv::LengthSqd(dc) < SK_ScalarNearlyZero) { in convert_noninflect_cubic_to_quads_with_constraint()
484 if (SkPointPriv::LengthSqd(dc) < SK_ScalarNearlyZero) { in convert_noninflect_cubic_to_quads_with_constraint()
496 bool doQuads = SkPointPriv::LengthSqd(dc) < SK_ScalarNearlyZero || in convert_noninflect_cubic_to_quads_with_constraint()
497 SkPointPriv::LengthSqd(ab) < SK_ScalarNearlyZero; in convert_noninflect_cubic_to_quads_with_constraint()
499 SkScalar invDALengthSqd = SkPointPriv::LengthSqd(da); in convert_noninflect_cubic_to_quads_with_constraint()
DGrRenderTargetContext.cpp1405 maxOffset = SkScalarSqrt(SkTMax(SkPointPriv::LengthSqd(upperLeftOffset), in drawFastShadow()
1406 SkPointPriv::LengthSqd(lowerRightOffset))) + dr; in drawFastShadow()
/external/skqp/src/gpu/
DGrPathUtils.cpp409 if (SkPointPriv::LengthSqd(ab) < SK_ScalarNearlyZero) { in convert_noninflect_cubic_to_quads()
410 if (SkPointPriv::LengthSqd(dc) < SK_ScalarNearlyZero) { in convert_noninflect_cubic_to_quads()
419 if (SkPointPriv::LengthSqd(dc) < SK_ScalarNearlyZero) { in convert_noninflect_cubic_to_quads()
474 if (SkPointPriv::LengthSqd(ab) < SK_ScalarNearlyZero) { in convert_noninflect_cubic_to_quads_with_constraint()
475 if (SkPointPriv::LengthSqd(dc) < SK_ScalarNearlyZero) { in convert_noninflect_cubic_to_quads_with_constraint()
484 if (SkPointPriv::LengthSqd(dc) < SK_ScalarNearlyZero) { in convert_noninflect_cubic_to_quads_with_constraint()
496 bool doQuads = SkPointPriv::LengthSqd(dc) < SK_ScalarNearlyZero || in convert_noninflect_cubic_to_quads_with_constraint()
497 SkPointPriv::LengthSqd(ab) < SK_ScalarNearlyZero; in convert_noninflect_cubic_to_quads_with_constraint()
499 SkScalar invDALengthSqd = SkPointPriv::LengthSqd(da); in convert_noninflect_cubic_to_quads_with_constraint()
DGrRenderTargetContext.cpp1312 maxOffset = SkScalarSqrt(SkTMax(SkPointPriv::LengthSqd(upperLeftOffset), in drawFastShadow()
1313 SkPointPriv::LengthSqd(lowerRightOffset))) + dr; in drawFastShadow()
/external/skqp/src/gpu/ops/
DGrAAHairLinePathRenderer.cpp559 if (toDevice && SkPointPriv::LengthSqd(ab) <= SK_ScalarNearlyZero*SK_ScalarNearlyZero) { in bloat_quad()
562 if (toDevice && SkPointPriv::LengthSqd(cb) <= SK_ScalarNearlyZero*SK_ScalarNearlyZero) { in bloat_quad()
586 if (toDevice && SkPointPriv::LengthSqd(ac) <= SK_ScalarNearlyZero*SK_ScalarNearlyZero) { in bloat_quad()
659 SkScalar lengthSqd = SkPointPriv::LengthSqd(vec); in add_line()
/external/skia/src/gpu/ops/
DGrAAHairLinePathRenderer.cpp558 if (toDevice && SkPointPriv::LengthSqd(ab) <= SK_ScalarNearlyZero*SK_ScalarNearlyZero) { in bloat_quad()
561 if (toDevice && SkPointPriv::LengthSqd(cb) <= SK_ScalarNearlyZero*SK_ScalarNearlyZero) { in bloat_quad()
585 if (toDevice && SkPointPriv::LengthSqd(ac) <= SK_ScalarNearlyZero*SK_ScalarNearlyZero) { in bloat_quad()
658 SkScalar lengthSqd = SkPointPriv::LengthSqd(vec); in add_line()
/external/skia/samplecode/
DSampleHT.cpp38 return SkPointPriv::LengthSqd(pt) <= 1; in oval_contains()
DSampleAAGeometry.cpp1296 SkScalar lenSq = SkPointPriv::LengthSqd(adjOpp); in pt_to_line()
/external/skqp/samplecode/
DSampleHT.cpp38 return SkPointPriv::LengthSqd(pt) <= 1; in oval_contains()
DSampleAAGeometry.cpp1296 SkScalar lenSq = SkPointPriv::LengthSqd(adjOpp); in pt_to_line()
/external/skqp/tools/fonts/
DSkTestSVGTypeface.cpp921 if (SkPointPriv::LengthSqd(ab) < SK_ScalarNearlyZero) { in convert_noninflect_cubic_to_quads()
922 if (SkPointPriv::LengthSqd(dc) < SK_ScalarNearlyZero) { in convert_noninflect_cubic_to_quads()
931 if (SkPointPriv::LengthSqd(dc) < SK_ScalarNearlyZero) { in convert_noninflect_cubic_to_quads()
/external/skia/tools/fonts/
DSkTestSVGTypeface.cpp919 if (SkPointPriv::LengthSqd(ab) < SK_ScalarNearlyZero) { in convert_noninflect_cubic_to_quads()
920 if (SkPointPriv::LengthSqd(dc) < SK_ScalarNearlyZero) { in convert_noninflect_cubic_to_quads()
929 if (SkPointPriv::LengthSqd(dc) < SK_ScalarNearlyZero) { in convert_noninflect_cubic_to_quads()