# Thread: Decide whether the three points are vertices of a right triangle...

1. ## Decide whether the three points are vertices of a right triangle...

Ok, first off... How do I find out whether three plottable points (x,y) are the vertices of a right triangle? I know $a^2+b^2=c^2$, but that doesn't quite work here...

2. Originally Posted by jscalalamoboy
Ok, first off... How do I find out whether three plottable points (x,y) are the vertices of a right triangle? I know $a^2+b^2=c^2$, but that doesn't quite work here...
Given three points $(x_0,y_0),(x_1,y_1),(x_2,y_2)$

If they form a right right triangle

$\bigg[(x_0-x_1)^2+(y_0-y_1)^2]\bigg]+\bigg[((x_0-x_2)^2+(y_0-y_2)^2\bigg]=\bigg[(x_2-x_2)^2+(y_1-y_2)^2\bigg]$

3. Thanks for fast reply bro!