Lines Matching refs:y2
173 double x1, y1, x2, y2;
180 { y1 = first_point->y; y2 = last_point->y; }
182 { y2 = first_point->y; y1 = last_point->y; }
185 point->y = ((y2 - y1)/2 + y1);
423 void wxLineShape::SetEnds(double x1, double y1, double x2, double y2)
434 last_point->y = y2;
437 m_ypos = (double)((y1 + y2)/2.0);
441 void wxLineShape::GetEnds(double *x1, double *y1, double *x2, double *y2)
449 *x2 = last_point->x; *y2 = last_point->y;
675 (x1, y1)--------------(x3, y3)------------------(x2, y2)
775 | o(x2, y2) 'o' represents the arrowhead.
786 double y2 = positionOnLineY;
788 if ((x1 == x2) && (y1 == y2))
791 else if ((x1 == x2) && (y1 > y2))
794 else if ((x1 == x2) && (y2 > y1))
797 else if ((x2 > x1) && (y2 >= y1))
798 theta = (double)atan((y2 - y1)/(x2 - x1));
801 theta = (double)(myPi + atan((y2 - y1)/(x2 - x1)));
803 else if ((x2 > x1) && (y2 < y1))
804 theta = (double)(2*myPi + atan((y2 - y1)/(x2 - x1)));
891 double y2 = -10000;
901 if (point->y > y2) y2 = point->y;
906 *h = (double)(y2 - y1);
1984 * Get the point on the given line (x1, y1) (x2, y2)
1989 void GetPointOnLine(double x1, double y1, double x2, double y2,
1992 double l = (double)sqrt((x2 - x1)*(x2 - x1) + (y2 - y1)*(y2 - y1));
1998 double j_bar = (y2 - y1)/l;
2001 *y = (- length*j_bar) + y2;