Lines Matching refs:ray
272 ResultType strokeCloseEnough(const SkPoint stroke[3], const SkPoint ray[2],
1026 const SkPoint ray[2], SkQuadConstruct* quadPts STROKER_DEBUG_PARAMS(int depth)) const {
1029 if (points_within_dist(ray[0], strokeMid, fInvResScale)) { // if the difference is small
1038 "points_within_dist(ray[0]=%g,%g, strokeMid=%g,%g, fInvResScale=%g)",
1039 ray[0].fX, ray[0].fY, strokeMid.fX, strokeMid.fY, fInvResScale);
1043 if (!ptInQuadBounds(stroke, ray[0])) { // if far, subdivide
1045 "!pt_in_quad_bounds(stroke=(%g,%g %g,%g %g,%g), ray[0]=%g,%g)",
1047 ray[0].fX, ray[0].fY);
1049 // measure the curve ray distance to the quad-stroke
1051 int rootCount = intersect_quad_ray(ray, stroke, roots);
1058 if (points_within_dist(ray[0], quadPt, error)) { // if the difference is small, we're done
1067 "points_within_dist(ray[0]=%g,%g, quadPt=%g,%g, error=%g)",
1068 ray[0].fX, ray[0].fY, quadPt.fX, quadPt.fY, error);
1083 // project a ray from the curve to the stroke
1084 SkPoint ray[2]; // points near midpoint on quad, midpoint on cubic
1085 this->cubicPerpRay(cubic, quadPts->fMidT, &ray[1], &ray[0], nullptr);
1086 return this->strokeCloseEnough(quadPts->fQuad, ray, quadPts
1099 // project a ray from the curve to the stroke
1100 SkPoint ray[2]; // points near midpoint on quad, midpoint on conic
1101 this->conicPerpRay(conic, quadPts->fMidT, &ray[1], &ray[0], nullptr);
1102 return this->strokeCloseEnough(quadPts->fQuad, ray, quadPts
1126 // project a ray from the curve to the stroke
1127 SkPoint ray[2];
1128 this->quadPerpRay(quad, quadPts->fMidT, &ray[1], &ray[0], nullptr);
1129 return this->strokeCloseEnough(quadPts->fQuad, ray, quadPts