I understand how to calculate the hypotenuse a^2 + b^2 = c^2, sqrt(c) = hypotenuse. And I am aware there are some relevant answers already on stackoverflow, but they are immersed in terminology I don't understand(yet) as a beginner programmer.
As this is more programming orientated I haven't been able to find anything relevant on math websites either.
If you have a right angle triangle
* |
7.07 * | 5
* |
* |
*_ _ _ _ _ |
5
How do I increment x and y (x,y) in cartesian format, so that I can draw in pixels SetPixel(myDC, x, y, COLOUR);
I somehow understand the concept of sin, cos and tan and their inverses, but can not for the life of me figure out how to increment (x,y) together in relation to the size of the adjacent and opposite lengths.