Hello,
I know that sin is opposite/hypotenuse
in a right angled triangle and cos is adjacent/hypotenuse
. But when i come across functions like for Eg. In Flash :-
something.x = Math.cos(someNumber) * someotherNumber;
something.z = Math.sin(someNumber) * someotherNumber;
what does it actually do? My stack overflows when i see such things. I don't understand trignometry that well. What is the opposite and what exactly is the hypotenuse in the above lines? And why does it use cos
on one line and sin
on other? Is there any shortcut for calculating these kind of things? Please help me. These things i didn't understand even when i took computer graphics classes and unfortunately even when i asked to my lecturer, she always used to tell, these things you already studied when you were in 7th grade. But i really don't remember that i studied anything like this.
Thanks in advance :)