Lines Matching refs:dist
36 Color pixelLineIntersect(Point<pxs> line, pxs dist, Color c) { in pixelLineIntersect() argument
37 TEEUI_LOG << "Line: " << line << " Dist: " << dist; in pixelLineIntersect()
38 bool more_than_half = dist < 0.0; in pixelLineIntersect()
42 if (dist.abs() < kEpsilon) { in pixelLineIntersect()
45 } else if (dist.abs() >= kHalfSqrt2) { in pixelLineIntersect()
49 auto dist_vec = line * dist; in pixelLineIntersect()
96 auto dist = 0_px; in drawLinePoint() local
111 dist = (line * (px_origin - a)).abs() - width + .5_px; in drawLinePoint()
114 return pixelLineIntersect(line, dist, c); in drawLinePoint()
119 auto dist = line.length() - r; in drawCirclePoint() local
121 return pixelLineIntersect(line.unit(), dist, c); in drawCirclePoint()