[Math] How to determine if a triangle can be drawn with the given points.

coordinate systemsgeometrytriangles

Given $3$ points
$$(x_1, y_1), (x_2, y_2), (x_3, y_3),$$ how does one determine whether they are vertices of a triangle?

Thanks.

Best Answer

1: Find area of triangle formed by 3 points. if not zero they can form triangle.

2: Find line equation of 2 vertices and check if the 3rd vertices is present on this line. if not they can form triangle. Similarly Find the slope of the line joining points A and B,then find the slope of the line joining A and C.If they are same,then you can't draw a triangle.(@rah4927)

Related Question