Home
last modified time | relevance | path

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

/external/chromium_org/third_party/skia/experimental/Intersection/
DQuadraticReduceOrder.cpp26 double tValue; in vertical_line() local
34 if (findExtrema(quad[0].y, quad[1].y, quad[2].y, &tValue)) { in vertical_line()
35 double yExtrema = interp_quad_coords(quad[0].y, quad[1].y, quad[2].y, tValue); in vertical_line()
47 double tValue; in horizontal_line() local
55 if (findExtrema(quad[0].x, quad[1].x, quad[2].x, &tValue)) { in horizontal_line()
56 double xExtrema = interp_quad_coords(quad[0].x, quad[1].x, quad[2].x, tValue); in horizontal_line()
96 double tValue; in check_linear() local
99 root = findExtrema(quad[0].x, quad[1].x, quad[2].x, &tValue); in check_linear()
101 root = findExtrema(quad[0].y, quad[1].y, quad[2].y, &tValue); in check_linear()
105 extrema.x = interp_quad_coords(quad[0].x, quad[1].x, quad[2].x, tValue); in check_linear()
[all …]
DQuadraticUtilities.cpp80 double tValue = s[index]; in add_valid_ts() local
81 if (approximately_zero_or_more(tValue) && approximately_one_or_less(tValue)) { in add_valid_ts()
82 if (approximately_less_than_zero(tValue)) { in add_valid_ts()
83 tValue = 0; in add_valid_ts()
84 } else if (approximately_greater_than_one(tValue)) { in add_valid_ts()
85 tValue = 1; in add_valid_ts()
88 if (approximately_equal(t[idx2], tValue)) { in add_valid_ts()
92 t[foundRoots++] = tValue; in add_valid_ts()
DExtrema.cpp75 int findExtrema(double a, double b, double c, double tValue[1]) in findExtrema()
80 return validUnitDivide(a - b, a - b - b + c, tValue); in findExtrema()
DExtrema.h8 int findExtrema(double a, double b, double c, double tValue[1]);
/external/skia/experimental/Intersection/
DQuadraticReduceOrder.cpp26 double tValue; in vertical_line() local
34 if (findExtrema(quad[0].y, quad[1].y, quad[2].y, &tValue)) { in vertical_line()
35 double yExtrema = interp_quad_coords(quad[0].y, quad[1].y, quad[2].y, tValue); in vertical_line()
47 double tValue; in horizontal_line() local
55 if (findExtrema(quad[0].x, quad[1].x, quad[2].x, &tValue)) { in horizontal_line()
56 double xExtrema = interp_quad_coords(quad[0].x, quad[1].x, quad[2].x, tValue); in horizontal_line()
96 double tValue; in check_linear() local
99 root = findExtrema(quad[0].x, quad[1].x, quad[2].x, &tValue); in check_linear()
101 root = findExtrema(quad[0].y, quad[1].y, quad[2].y, &tValue); in check_linear()
105 extrema.x = interp_quad_coords(quad[0].x, quad[1].x, quad[2].x, tValue); in check_linear()
[all …]
DQuadraticUtilities.cpp80 double tValue = s[index]; in add_valid_ts() local
81 if (approximately_zero_or_more(tValue) && approximately_one_or_less(tValue)) { in add_valid_ts()
82 if (approximately_less_than_zero(tValue)) { in add_valid_ts()
83 tValue = 0; in add_valid_ts()
84 } else if (approximately_greater_than_one(tValue)) { in add_valid_ts()
85 tValue = 1; in add_valid_ts()
88 if (approximately_equal(t[idx2], tValue)) { in add_valid_ts()
92 t[foundRoots++] = tValue; in add_valid_ts()
DExtrema.cpp75 int findExtrema(double a, double b, double c, double tValue[1]) in findExtrema()
80 return validUnitDivide(a - b, a - b - b + c, tValue); in findExtrema()
DExtrema.h8 int findExtrema(double a, double b, double c, double tValue[1]);
/external/skia/src/pathops/
DSkPathOpsQuad.cpp72 double tValue = s[index]; in AddValidTs() local
73 if (approximately_zero_or_more(tValue) && approximately_one_or_less(tValue)) { in AddValidTs()
74 if (approximately_less_than_zero(tValue)) { in AddValidTs()
75 tValue = 0; in AddValidTs()
76 } else if (approximately_greater_than_one(tValue)) { in AddValidTs()
77 tValue = 1; in AddValidTs()
80 if (approximately_equal(t[idx2], tValue)) { in AddValidTs()
84 t[foundRoots++] = tValue; in AddValidTs()
322 int SkDQuad::FindExtrema(double a, double b, double c, double tValue[1]) { in FindExtrema()
326 return valid_unit_divide(a - b, a - b - b + c, tValue); in FindExtrema()
DSkPathOpsQuad.h40 static int FindExtrema(double a, double b, double c, double tValue[1]);
DSkPathOpsCubic.h39 static int FindExtrema(double a, double b, double c, double d, double tValue[2]);
/external/chromium_org/third_party/skia/src/pathops/
DSkPathOpsQuad.cpp72 double tValue = s[index]; in AddValidTs() local
73 if (approximately_zero_or_more(tValue) && approximately_one_or_less(tValue)) { in AddValidTs()
74 if (approximately_less_than_zero(tValue)) { in AddValidTs()
75 tValue = 0; in AddValidTs()
76 } else if (approximately_greater_than_one(tValue)) { in AddValidTs()
77 tValue = 1; in AddValidTs()
80 if (approximately_equal(t[idx2], tValue)) { in AddValidTs()
84 t[foundRoots++] = tValue; in AddValidTs()
322 int SkDQuad::FindExtrema(double a, double b, double c, double tValue[1]) { in FindExtrema()
326 return valid_unit_divide(a - b, a - b - b + c, tValue); in FindExtrema()
DSkPathOpsQuad.h40 static int FindExtrema(double a, double b, double c, double tValue[1]);
DSkPathOpsCubic.h39 static int FindExtrema(double a, double b, double c, double d, double tValue[2]);
/external/chromium_org/third_party/skia/src/core/
DSkGeometry.cpp244 int SkFindQuadExtrema(SkScalar a, SkScalar b, SkScalar c, SkScalar tValue[1]) { in SkFindQuadExtrema()
248 return valid_unit_divide(a - b, a - b - b + c, tValue); in SkFindQuadExtrema()
267 SkScalar tValue; in SkChopQuadAtYExtrema() local
268 if (valid_unit_divide(a - b, a - b - b + c, &tValue)) { in SkChopQuadAtYExtrema()
269 SkChopQuadAt(src, dst, tValue); in SkChopQuadAtYExtrema()
295 SkScalar tValue; in SkChopQuadAtXExtrema() local
296 if (valid_unit_divide(a - b, a - b - b + c, &tValue)) { in SkChopQuadAtXExtrema()
297 SkChopQuadAt(src, dst, tValue); in SkChopQuadAtXExtrema()
/external/skia/src/core/
DSkGeometry.cpp244 int SkFindQuadExtrema(SkScalar a, SkScalar b, SkScalar c, SkScalar tValue[1]) { in SkFindQuadExtrema()
248 return valid_unit_divide(a - b, a - b - b + c, tValue); in SkFindQuadExtrema()
267 SkScalar tValue; in SkChopQuadAtYExtrema() local
268 if (valid_unit_divide(a - b, a - b - b + c, &tValue)) { in SkChopQuadAtYExtrema()
269 SkChopQuadAt(src, dst, tValue); in SkChopQuadAtYExtrema()
295 SkScalar tValue; in SkChopQuadAtXExtrema() local
296 if (valid_unit_divide(a - b, a - b - b + c, &tValue)) { in SkChopQuadAtXExtrema()
297 SkChopQuadAt(src, dst, tValue); in SkChopQuadAtXExtrema()