--- In [email protected], Jos Timanta Tarigan <jos_t_tari...@...> wrote:
>
> hi,
> im currently having a problem try to calculate this:
> directionZ = -cos((angleX+90)*PI_RADIAN);
> most of the time it works but when im in the boundary of the coordinate, it 
> gives me a little error that im not expecting if calculated correctly.

Hi Jos - please can you show your code eg. are you using float or double? And 
do you mean sin, because cos(180 degrees) = -1, not 0. Where are you getting 
PI_RADIAN from?

Reply via email to