Please format your code before pasting. You can do that with Command+t.
If I understand your question, you have an angle that you want in degrees. The trig functions use radians and can be converted with degrees(): http://processing.org/reference/degrees_.html
Answers
Please format your code before pasting. You can do that with Command+t.
If I understand your question, you have an angle that you want in degrees. The trig functions use radians and can be converted with degrees(): http://processing.org/reference/degrees_.html
no, i think he just wants the arccos function name:
http://processing.org/reference/acos_.html
see also http://processing.org/reference/asin_.html and http://processing.org/reference/atan2_.html
(atan2() is recommended over atan())
I tried degrees() and its close, must have something off...
degrees just converts from radians to degrees, a simple multiplication.
you want acos() etc, which are what you're calling cos^-1
http://en.wikipedia.org/wiki/Inverse_trigonometric_function
(^ answer will be in radians)
This might make it clearer
will display 79.47293
Thanks... thats it!