Home
last modified time | relevance | path

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

/third_party/flutter/skia/src/pathops/
DSkPathOpsQuad.cpp113 double tValue = s[index]; in AddValidTs() local
114 if (approximately_zero_or_more(tValue) && approximately_one_or_less(tValue)) { in AddValidTs()
115 if (approximately_less_than_zero(tValue)) { in AddValidTs()
116 tValue = 0; in AddValidTs()
117 } else if (approximately_greater_than_one(tValue)) { in AddValidTs()
118 tValue = 1; in AddValidTs()
121 if (approximately_equal(t[idx2], tValue)) { in AddValidTs()
125 t[foundRoots++] = tValue; in AddValidTs()
377 int SkDQuad::FindExtrema(const double src[], double tValue[1]) { in FindExtrema()
384 return valid_unit_divide(a - b, a - b - b + c, tValue); in FindExtrema()
DSkPathOpsCubic.cpp375 double tValue = s[index]; in RootsValidT() local
376 if (!approximately_one_or_less(tValue) && between(1, tValue, 1.00005)) { in RootsValidT()
384 } else if (!approximately_zero_or_more(tValue) && between(-0.00005, tValue, 0)) { in RootsValidT()
DSkPathOpsQuad.h69 static int FindExtrema(const double src[], double tValue[1]);
DSkPathOpsConic.h67 static int FindExtrema(const double src[], SkScalar weight, double tValue[1]);
DSkPathOpsCubic.h65 static int FindExtrema(const double src[], double tValue[2]);
/third_party/skia/src/pathops/
DSkPathOpsQuad.cpp113 double tValue = s[index]; in AddValidTs() local
114 if (approximately_zero_or_more(tValue) && approximately_one_or_less(tValue)) { in AddValidTs()
115 if (approximately_less_than_zero(tValue)) { in AddValidTs()
116 tValue = 0; in AddValidTs()
117 } else if (approximately_greater_than_one(tValue)) { in AddValidTs()
118 tValue = 1; in AddValidTs()
121 if (approximately_equal(t[idx2], tValue)) { in AddValidTs()
125 t[foundRoots++] = tValue; in AddValidTs()
377 int SkDQuad::FindExtrema(const double src[], double tValue[1]) { in FindExtrema()
384 return valid_unit_divide(a - b, a - b - b + c, tValue); in FindExtrema()
DSkPathOpsCubic.cpp377 double tValue = s[index]; in RootsValidT() local
378 if (!approximately_one_or_less(tValue) && between(1, tValue, 1.00005)) { in RootsValidT()
386 } else if (!approximately_zero_or_more(tValue) && between(-0.00005, tValue, 0)) { in RootsValidT()
DSkPathOpsConic.h67 static int FindExtrema(const double src[], SkScalar weight, double tValue[1]);
DSkPathOpsQuad.h69 static int FindExtrema(const double src[], double tValue[1]);
DSkPathOpsCubic.h65 static int FindExtrema(const double src[], double tValue[2]);
/third_party/flutter/skia/src/core/
DSkGeometry.cpp179 int SkFindQuadExtrema(SkScalar a, SkScalar b, SkScalar c, SkScalar tValue[1]) { in SkFindQuadExtrema()
183 return valid_unit_divide(a - b, a - b - b + c, tValue); in SkFindQuadExtrema()
202 SkScalar tValue; in SkChopQuadAtYExtrema() local
203 if (valid_unit_divide(a - b, a - b - b + c, &tValue)) { in SkChopQuadAtYExtrema()
204 SkChopQuadAt(src, dst, tValue); in SkChopQuadAtYExtrema()
230 SkScalar tValue; in SkChopQuadAtXExtrema() local
231 if (valid_unit_divide(a - b, a - b - b + c, &tValue)) { in SkChopQuadAtXExtrema()
232 SkChopQuadAt(src, dst, tValue); in SkChopQuadAtXExtrema()
/third_party/skia/src/core/
DSkGeometry.cpp246 int SkFindQuadExtrema(SkScalar a, SkScalar b, SkScalar c, SkScalar tValue[1]) { in SkFindQuadExtrema()
250 return valid_unit_divide(a - b, a - b - b + c, tValue); in SkFindQuadExtrema()
269 SkScalar tValue; in SkChopQuadAtYExtrema() local
270 if (valid_unit_divide(a - b, a - b - b + c, &tValue)) { in SkChopQuadAtYExtrema()
271 SkChopQuadAt(src, dst, tValue); in SkChopQuadAtYExtrema()
297 SkScalar tValue; in SkChopQuadAtXExtrema() local
298 if (valid_unit_divide(a - b, a - b - b + c, &tValue)) { in SkChopQuadAtXExtrema()
299 SkChopQuadAt(src, dst, tValue); in SkChopQuadAtXExtrema()