Sin() Wrong Results
I have the following java snippet:
zMove = Math.sin(rotationN);
zMove is a double, while rotationN is an integer.
The problem arises in the calculation. When rotationN is 30, the result should be 0.5. However, the output is -0.9880316240928618. What am I doing wrong, and what should I change? Thanks in advance.
EDIT: Solved. Apparently, it was working in Radians. Please, Mods, do not delete this post. Maybe someone with the same problem sees this. Thanks.
Re: Sin() Wrong Results
This is a perfect example of why it's important to read the API documentation for the classes and methods used.