Calculating angles
Hey people
This is my first post on this forum. I am quite new to max/msp, but I'm getting the hang of it.
I have been searching the documentation, and also been searching this forum, but I cannot seem to find what I have been looking for. Therefore I have decided to ask you guys.
I am wondering if there exists an object in max/msp that makes it possible to take the reversed cosine (also sin and tan). When looking in the documentation it says nothing about it.
But I need my program to calculate the angles in a triangle so if you guys could help in any ways, it would be most appreciated.
Just to explain:
I am able to do the following:
sin(A) = x / dist
cos(A) = y / dist
tan(A) = y / x
But I want to do this:
A = reversed-sin(x / dist)
A = reversed-cos(y / dist)
A = reversed-tan(y / x)
I hope that you understand, and that you can help me.
Best regards
Johnny
look for [asin] etc.
vb
I have spottet that one, but it seems to be giving the result in radians (or something). I need degrees.
JohnnyMyhre wrote on Sun, 19 April 2009 10:15I have spottet that one, but it seems to be giving the result in radians (or something). I need degrees.
generally all those trigonometric functions calculate in radians.
but it really doesn't matter much, as the conversion to degrees is simple.
I did not know the expr object. It seems to do the trick.
Thanks a lot.