Im trying to find the ortho-centre of a triangle using the tutorial found here. All is fine up to the point where I have to calculate the equation of the line. For the equation of the line I should end up with 2 equations that should look something like x + 9y = 45 and 2x - y = 12 as per the example. This is where I get stuck. How can I express this programatically as 2 of the variables for each equation are unknown? And then I am to use the 2 equations above to solve for x and y. Again, how can I do this programatically? I know how to do it on paper but I cant seem to get my head around how to do this in C# (XNA)
Does anyone have any solutions?