Hello,
If I know the angle and the hypotenuse, what MMF syntax do I use to retrieve the opposite side?
Sin(angle) = opp / hyp
Sin(45) = x / 20
What syntax will give me then length of x?
Thank you
Printable View
Hello,
If I know the angle and the hypotenuse, what MMF syntax do I use to retrieve the opposite side?
Sin(angle) = opp / hyp
Sin(45) = x / 20
What syntax will give me then length of x?
Thank you
I feel a face-palm coming on...
sin(45)*20 = x
(multiply both halves of your equation by 20)
Haha I feel silly. Actually, I worded my question incorrectly.
I wanted to position a point on a swinging rope and I needed to work out the opposite length based on the angle and the hypotenuse and I couldn't get the syntax correct.
I figured it out though: Opposite = Hypotenuse * cos(ANGLE-90)
It was for an example I was making for another thread. Here it is if you are interested.