This little project I made is just a test for using the Pythagorean theory to solve for c(hypotenuse). Use the scroll on A or B to change that selected length. In case any of you don't know, the tilde(~) means approximately. A=Height B=Length C=Hypotenuse
How does this project do this? To start it goes from each vertex(corner) of the Δ(triangle) drawing as it goes. It constantly clearing everything then redrawing the Δ too quickly for you to notice. It determines the amount of movement depending on what the variables A or B equals. Then it has to solve for C. What it does to find C is called the Pythagorean theorem. What the Pythagorean theorem does is it adds A and B squared. Then it finds the square root of that answer.