Lines Matching refs:cubic
16 double leftMostT(const Cubic& cubic, double startT, double endT) {
19 int results = findExtrema(cubic[0].x, cubic[1].x, cubic[2].x, cubic[3].x, leftTs);
29 xy_at_t(cubic, leftTs[0], pt[0].x, pt[0].y);
30 xy_at_t(cubic, leftTs[1], pt[1].x, pt[1].y);
38 xy_at_t(cubic, startT, pt[0].x, pt[0].y);
39 xy_at_t(cubic, endT, pt[1].x, pt[1].y);
43 void _Rect::setBounds(const Cubic& cubic) {
44 set(cubic[0]);
45 add(cubic[3]);
48 if (!isBoundedByEndPoints(cubic[0].x, cubic[1].x, cubic[2].x, cubic[3].x)) {
49 roots = findExtrema(cubic[0].x, cubic[1].x, cubic[2].x, cubic[3].x, tValues);
51 if (!isBoundedByEndPoints(cubic[0].y, cubic[1].y, cubic[2].y, cubic[3].y)) {
52 roots += findExtrema(cubic[0].y, cubic[1].y, cubic[2].y, cubic[3].y, &tValues[roots]);
56 xy_at_t(cubic, tValues[x], result.x, result.y);
61 void _Rect::setRawBounds(const Cubic& cubic) {
62 set(cubic[0]);
64 add(cubic[x]);