Lines Matching defs:cubicT
156 double cubicT = rootVals[index];
157 double lineT = findLineT(cubicT);
159 if (pinTs(&cubicT, &lineT, &pt, kPointUninitialized) && uniqueAnswer(cubicT, pt)) {
160 fIntersections->insert(cubicT, lineT, pt);
192 double cubicT = roots[index];
193 SkDPoint pt = { fCubic.ptAtT(cubicT).fX, axisIntercept };
195 if (pinTs(&cubicT, &lineT, &pt, kPointInitialized) && uniqueAnswer(cubicT, pt)) {
196 fIntersections->insert(cubicT, lineT, pt);
206 bool uniqueAnswer(double cubicT, const SkDPoint& pt) {
212 if (cubicT == existingCubicT) {
216 double cubicMidT = (existingCubicT + cubicT) / 2;
223 SkDPoint cPt = fCubic.ptAtT(cubicT);
255 double cubicT = roots[index];
256 SkDPoint pt = { axisIntercept, fCubic.ptAtT(cubicT).fY };
258 if (pinTs(&cubicT, &lineT, &pt, kPointInitialized) && uniqueAnswer(cubicT, pt)) {
259 fIntersections->insert(cubicT, lineT, pt);
277 double cubicT = (double) (cIndex >> 1);
278 fIntersections->insert(cubicT, lineT, fCubic[cIndex]);
286 double cubicT = (double) (cIndex >> 1);
287 if (fIntersections->hasT(cubicT)) {
294 fIntersections->insert(cubicT, lineT, fCubic[cIndex]);
305 double cubicT = ((SkDCurve*) &fCubic)->nearPoint(SkPath::kCubic_Verb,
307 if (cubicT < 0) {
310 fIntersections->insert(cubicT, lineT, fLine[lIndex]);
320 double cubicT = (double) (cIndex >> 1);
321 fIntersections->insert(cubicT, lineT, fCubic[cIndex]);
327 double cubicT = (double) (cIndex >> 1);
328 if (fIntersections->hasT(cubicT)) {
335 fIntersections->insert(cubicT, lineT, fCubic[cIndex]);
346 double cubicT = (double) (cIndex >> 1);
347 fIntersections->insert(cubicT, lineT, fCubic[cIndex]);
353 double cubicT = (double) (cIndex >> 1);
354 if (fIntersections->hasT(cubicT)) {
361 fIntersections->insert(cubicT, lineT, fCubic[cIndex]);
376 bool pinTs(double* cubicT, double* lineT, SkDPoint* pt, PinTPoint ptSet) {
383 double cT = *cubicT = SkPinT(*cubicT);
403 if (gridPt == fCubic[0].asSkPoint() && approximately_equal(*cubicT, 0)) {
404 *cubicT = 0;
405 } else if (gridPt == fCubic[3].asSkPoint() && approximately_equal(*cubicT, 1)) {
406 *cubicT = 1;