/third_party/skia/src/pathops/ |
H A D | SkPathOpsCurve.h | 299 static void line_intersect_ray(const SkPoint a[2], SkScalar , const SkDLine& ray, in line_intersect_ray() argument 303 i->intersectRay(line, ray); in line_intersect_ray() 306 static void quad_intersect_ray(const SkPoint a[3], SkScalar , const SkDLine& ray, in quad_intersect_ray() argument 310 i->intersectRay(quad, ray); in quad_intersect_ray() 313 static void conic_intersect_ray(const SkPoint a[3], SkScalar weight, const SkDLine& ray, in conic_intersect_ray() argument 317 i->intersectRay(conic, ray); in conic_intersect_ray() 320 static void cubic_intersect_ray(const SkPoint a[4], SkScalar , const SkDLine& ray, in cubic_intersect_ray() argument 324 i->intersectRay(cubic, ray); in cubic_intersect_ray() 336 static void dline_intersect_ray(const SkDCurve& c, const SkDLine& ray, SkIntersections* i) { in dline_intersect_ray() argument 337 i->intersectRay(c.fLine, ray); in dline_intersect_ray() 340 dquad_intersect_ray(const SkDCurve& c, const SkDLine& ray, SkIntersections* i) dquad_intersect_ray() argument 344 dconic_intersect_ray(const SkDCurve& c, const SkDLine& ray, SkIntersections* i) dconic_intersect_ray() argument 348 dcubic_intersect_ray(const SkDCurve& c, const SkDLine& ray, SkIntersections* i) dcubic_intersect_ray() argument [all...] |
H A D | SkOpSegment.cpp | 1683 SkDLine ray = {{{midPt.fX, midPt.fY}, {partMidPt.fX + dxdy.fY, partMidPt.fY - dxdy.fX}}}; in testForCoincidence() local 1686 (*CurveDIntersectRay[opp->verb()])(oppPart, ray, &i); in testForCoincidence()
|
H A D | SkOpCoincidence.cpp | 306 SkDLine ray = {{{pt.fX, pt.fY}, {pt.fX + dxdy.fY, pt.fY - dxdy.fX}}}; in addEndMovedSpans() local 308 (*CurveIntersectRay[testSeg->verb()])(testSeg->pts(), testSeg->weight(), ray, &i); in addEndMovedSpans()
|
H A D | SkPathOpsDebug.cpp | 1484 SkDLine ray = {{{pt.fX, pt.fY}, {pt.fX + dxdy.fY, pt.fY - dxdy.fX}}}; in debugAddEndMovedSpans() local 1486 (*CurveIntersectRay[testSeg->verb()])(testSeg->pts(), testSeg->weight(), ray, &i); in debugAddEndMovedSpans()
|
/third_party/skia/src/core/ |
H A D | SkStroke.cpp | 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[ [all...] |
/third_party/skia/tests/ |
H A D | PathOpsAngleIdeas.cpp | 511 SkDVector ray = q.ptAtT(smallT) - origin; in testQuadAngles() 513 if (ray.fX * end.fX < 0 || ray.fY * end.fY < 0) { in testQuadAngles() 516 double rayDist = ray.length(); in testQuadAngles() 530 SkDVector ray = q.ptAtT(t) - origin; in testQuadAngles() 532 double rayDist = ray.length(); in testQuadAngles() 535 double midXray = mid.crossCheck(ray); in testQuadAngles() 675 If the hulls overlap, and have the same general direction, then intersect the shorter end point ray
|
/third_party/mesa3d/src/imgui/ |
H A D | imstb_truetype.h | 4228 static int stbtt__ray_intersect_bezier(float orig[2], float ray[2], float q0[2], float q1[2], float q2[2], float hits[2][2]) 4230 float q0perp = q0[1]*ray[0] - q0[0]*ray[1]; 4231 float q1perp = q1[1]*ray[0] - q1[0]*ray[1]; 4232 float q2perp = q2[1]*ray[0] - q2[0]*ray[1]; 4233 float roperp = orig[1]*ray[0] - orig[0]*ray[1]; 4267 float rcp_len2 = 1 / (ray[ [all...] |
/third_party/skia/third_party/externals/imgui/ |
H A D | imstb_truetype.h | 4228 static int stbtt__ray_intersect_bezier(float orig[2], float ray[2], float q0[2], float q1[2], float q2[2], float hits[2][2]) 4230 float q0perp = q0[1]*ray[0] - q0[0]*ray[1]; 4231 float q1perp = q1[1]*ray[0] - q1[0]*ray[1]; 4232 float q2perp = q2[1]*ray[0] - q2[0]*ray[1]; 4233 float roperp = orig[1]*ray[0] - orig[0]*ray[1]; 4267 float rcp_len2 = 1 / (ray[ [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/ray_tracing/ |
H A D | vktRayTracingBuiltinTests.cpp | 2708 << " Ray ray = rays[index];\n" in initPrograms() 2709 << " traceRayEXT(scene, 0, 0xff, 0, 0, 0, ray.pos, ray.tmin, ray.dir, ray.tmax, 0);\n" in initPrograms() 2762 << "struct ResultData { Ray ray; vec4 worldRayOrig; vec4 worldRayDir; vec4 objectRayOrig; vec4 objectRayDir;\n" in initPrograms() 2815 << " Ray ray = results.ray;\n" in initPrograms() 2816 << " traceRayEXT(scene, 0, 0xff, 0, 0, 0, ray.pos, ray in initPrograms() 3448 Ray ray; global() member 3468 Ray ray; global() member 3481 Ray ray[2]; global() member 3490 Ray ray[2]; global() member [all...] |