- Home /
How to find inverse cos
Hello,
I need to find the inverse cos of -0.25. It's supposed to be 104.478 degrees. ( cos -1 (-0.25) )
When I use Mathf.Acos it returns me different number.
Why is this happening?
Answer by meat5000 · Aug 24, 2013 at 11:11 AM
http://docs.unity3d.com/Documentation/ScriptReference/Mathf.Acos.html
It works in Radians, where 2*pi = 360 degrees
If you need to use degrees use this in conjunction
Radians to degrees http://docs.unity3d.com/Documentation/ScriptReference/Mathf.Rad2Deg.html
Degrees to Radians http://docs.unity3d.com/Documentation/ScriptReference/Mathf.Deg2Rad.html
Your answer
Follow this Question
Related Questions
Mathf.Sin() & Mathf.Cos() 1 Answer
Move and Rotate player in circular motion? 2 Answers
What's wrong with this algorithm? 2 Answers
Snap the rotation 0 Answers
triangles angles 3 Answers