If i have two points (x1,y1) and (x2,y2)
What formula would I use to find the third point so that it forms an isosceles triangle.
Guys please help me out.
I'm stuck up in this problem.
Bala K J
Picture, if you will, the segment with end points P(x1,y1) and Q(x2,y2). Now picture a line perpendicular to, and passing through the segment's midpoint. Any point on this line will serve as the third point, i.e., the triangle's vertex. [true because i) the vertex of an isosceles triangle is equidistant to the endpoints of the base, and ii) A given point is equidistant to two other points, P1 and P2, iff it lies on the perpendicular bisector of segment (P1P2). So, it stands to reason that the coordinates the third point satisfy the equation of said perpendicular line.
To that end, two lines are perpendicular iff their slopes are negative reciprocals of one another. Thus, m=-(x2-x1)/(y2-y1) =(x2-x1)/(y1-y2). From m=(y-yk)/(x-xk) for some point (xk,yk) on the line, y=m(x-xk)+yk. The only point we know of is the midpoint of the segment with coordinates (0.5(x1+x2), 0.5(y1+y2)).
Conclusion: The third point is any point whose coordinates satisfy equation y=m(x-xk)+yk, where xk=0.5(x1+x2), yk=0.5(y1+y2), and m=(x2-x1)/(y1-y2).