This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
ardera's profile picture

[LUA] sinus, cosinus, tangens functions broken

Started by ardera, 11 November 2012 - 05:54 AM
ardera #1
Posted 11 November 2012 - 06:54 AM
(Please close, was not a bug…, the functions mentioned in the title return the numbers in radians)
Mads #2
Posted 11 November 2012 - 06:57 AM
….

They return the values in radians.
ardera #3
Posted 11 November 2012 - 07:07 AM
Ohhhhhhhhhhh………..
Sorrryyyy…
Mads #4
Posted 11 November 2012 - 07:13 AM
Use math.deg(n) to convert to degrees.

Next time, look at the Lua documentation.
Cloudy #5
Posted 11 November 2012 - 07:37 AM
Sigh. A little research goes a long way.