Lines Matching defs:x1
80 inline double distSq(const double x1, const double y1,
83 return (x2 - x1)*(x2 - x1) + (y2 - y1)*(y2 - y1);
86 inline double dist(const double x1, const double y1,
89 return sqrt(distSq(x1, y1, x2, y2));
195 * Where Vec4i/Vec4f is (x1, y1, x2, y2), point 1 is the start, point 2 - end.
275 double x1, y1, x2, y2; // first and second point of the line segment
290 * Where Vec4f is (x1, y1, x2, y2), point 1 is the start, point 2 - end.
509 rec.x1 += 0.5; rec.y1 += 0.5;
515 rec.x1 /= SCALE; rec.y1 /= SCALE;
521 lines.push_back(Vec4f(float(rec.x1), float(rec.y1), float(rec.x2), float(rec.y2)));
729 rec.x1 = x + l_min * dx;
787 double density = double(reg_size) / (dist(rec.x1, rec.y1, rec.x2, rec.y2) * rec.width);
820 density = double(reg_size) / (dist(rec.x1, rec.y1, rec.x2, rec.y2) * rec.width);
838 double radSq1 = distSq(xc, yc, rec.x1, rec.y1);
865 (dist(rec.x1, rec.y1, rec.x2, rec.y2) * rec.width);
919 r.x1 += -r.dy * delta_2;
940 r.x1 -= -r.dy * delta_2;
986 ordered_x[0].p.x = int(rec.x1 - dyhw); ordered_x[0].p.y = int(rec.y1 + dxhw); ordered_x[0].taken = false;
989 ordered_x[3].p.x = int(rec.x1 + dyhw); ordered_x[3].p.y = int(rec.y1 - dxhw); ordered_x[3].taken = false;