Lines Matching defs:cubic
13 Find the interection of a line and cubic by solving for valid t values.
15 Analogous to line-quadratic intersection, solve line-cubic intersection by
16 representing the cubic as:
24 Then using Mathematica, solve for the values of t where the cubic intersects the
54 instead, use Numeric Solutions recipe to solve the cubic.
215 // check if midway on cubic is also same point. If so, discard this
282 /* Note that this does not look for endpoints of the line that are near the cubic.
418 int SkIntersections::horizontal(const SkDCubic& cubic, double left, double right, double y,
421 LineCubicIntersections c(cubic, line, this);
425 int SkIntersections::vertical(const SkDCubic& cubic, double top, double bottom, double x,
428 LineCubicIntersections c(cubic, line, this);
432 int SkIntersections::intersect(const SkDCubic& cubic, const SkDLine& line) {
433 LineCubicIntersections c(cubic, line, this);
438 int SkIntersections::intersectRay(const SkDCubic& cubic, const SkDLine& line) {
439 LineCubicIntersections c(cubic, line, this);
442 fPt[index] = cubic.ptAtT(fT[0][index]);