Lines Matching defs:roots
360 static int line_intercept_h(const SkPoint a[2], SkScalar , SkScalar y, double* roots) {
365 roots[0] = SkIntersections::HorizontalIntercept(line.set(a), y);
366 return between(0, roots[0], 1);
369 static int line_intercept_v(const SkPoint a[2], SkScalar , SkScalar x, double* roots) {
374 roots[0] = SkIntersections::VerticalIntercept(line.set(a), x);
375 return between(0, roots[0], 1);
378 static int quad_intercept_h(const SkPoint a[2], SkScalar , SkScalar y, double* roots) {
380 return SkIntersections::HorizontalIntercept(quad.set(a), y, roots);
383 static int quad_intercept_v(const SkPoint a[2], SkScalar , SkScalar x, double* roots) {
385 return SkIntersections::VerticalIntercept(quad.set(a), x, roots);
388 static int conic_intercept_h(const SkPoint a[2], SkScalar w, SkScalar y, double* roots) {
390 return SkIntersections::HorizontalIntercept(conic.set(a, w), y, roots);
393 static int conic_intercept_v(const SkPoint a[2], SkScalar w, SkScalar x, double* roots) {
395 return SkIntersections::VerticalIntercept(conic.set(a, w), x, roots);
398 static int cubic_intercept_h(const SkPoint a[3], SkScalar , SkScalar y, double* roots) {
400 return cubic.set(a).horizontalIntersect(y, roots);
403 static int cubic_intercept_v(const SkPoint a[3], SkScalar , SkScalar x, double* roots) {
405 return cubic.set(a).verticalIntersect(x, roots);