Question: I'm trying to make an algorithm that determines the x and y coords of the orthocentre of a triangle given 3 points I tried this
I'm trying to make an algorithm that determines the x and y coords of the orthocentre of a triangle given 3 points 
I tried this by trying to calculate the values on a calculator but it didnt work. C1 and C2 are the y intercepts
7 8 9 o 1 2 void methodo y1=slope1*x1+1; y2=slope2*X2+C2; yl=y2; O=y2-y1; O=(slope1-slope 2)*x+(2-c1); x= (C2-c1)/(slope1 slope2); yl=slope1*x+ci; 4 5 6 7
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
