Home
last modified time | relevance | path

Searched refs:tValue (Results 1 – 6 of 6) sorted by relevance

/external/skia/src/pathops/
DSkPathOpsQuad.cpp79 double tValue = s[index]; in AddValidTs() local
80 if (approximately_zero_or_more(tValue) && approximately_one_or_less(tValue)) { in AddValidTs()
81 if (approximately_less_than_zero(tValue)) { in AddValidTs()
82 tValue = 0; in AddValidTs()
83 } else if (approximately_greater_than_one(tValue)) { in AddValidTs()
84 tValue = 1; in AddValidTs()
87 if (approximately_equal(t[idx2], tValue)) { in AddValidTs()
91 t[foundRoots++] = tValue; in AddValidTs()
319 int SkDQuad::FindExtrema(const double src[], double tValue[1]) { in FindExtrema()
326 return valid_unit_divide(a - b, a - b - b + c, tValue); in FindExtrema()
DSkPathOpsCubic.cpp342 double tValue = s[index]; in RootsValidT() local
343 if (!approximately_one_or_less(tValue) && between(1, tValue, 1.00005)) { in RootsValidT()
351 } else if (!approximately_zero_or_more(tValue) && between(-0.00005, tValue, 0)) { in RootsValidT()
DSkPathOpsQuad.h64 static int FindExtrema(const double src[], double tValue[1]);
DSkPathOpsConic.h59 static int FindExtrema(const double src[], SkScalar weight, double tValue[1]);
DSkPathOpsCubic.h73 static int FindExtrema(const double src[], double tValue[2]);
/external/skia/src/core/
DSkGeometry.cpp227 int SkFindQuadExtrema(SkScalar a, SkScalar b, SkScalar c, SkScalar tValue[1]) { in SkFindQuadExtrema()
231 return valid_unit_divide(a - b, a - b - b + c, tValue); in SkFindQuadExtrema()
250 SkScalar tValue; in SkChopQuadAtYExtrema() local
251 if (valid_unit_divide(a - b, a - b - b + c, &tValue)) { in SkChopQuadAtYExtrema()
252 SkChopQuadAt(src, dst, tValue); in SkChopQuadAtYExtrema()
278 SkScalar tValue; in SkChopQuadAtXExtrema() local
279 if (valid_unit_divide(a - b, a - b - b + c, &tValue)) { in SkChopQuadAtXExtrema()
280 SkChopQuadAt(src, dst, tValue); in SkChopQuadAtXExtrema()