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?
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?
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