I completely forgot how to do this crap. Do any of you remember? I'm working on a program that needs to solve angles of a triangle. I'm messing around with the Math.Sin/Cos/Tan functions and they're always giving me numbers that are way off what they should be. I must be doing something wrong.
Basically, it's for a right triangle, so all I need is to solve for angleA.
In other words, say you have a right triangle with sides 5, 5, and 7 (7.07 to be more specific). Obviously, that's going to be 45 degrees, 45 degrees, and 90 degrees, but how would you find that out mathematically from using the lengths of the sides?
the part of the program in a nutshell:
have the variables: sideA, sideB, and sideC
angleA = <insert help here>
angleB = 180 - (90 + angleA)
angleC = 90