BlueSin
New Member
- Reaction score
- 37
I have here a line from ActionScript:
x = x - landy * Math.sin(1.745329E-002 * rot) / 2;
In general terms, real x is assigned x minus a variable multiplied by the sine of pi/2-2 * a variable rot (rotation), all over 2.
More simply:
x = x - (var1*Sin( (pi/2)- 2(var2) ))/2
However, this declaration is causing x to occasionally become Nan (not-a-number, or non-real number). I know things like square root of a negative number and anything divided by 0 cause unreal numbers, but what coudl be causing this?
Thanks, plus rep to anyone who can help in any way.
x = x - landy * Math.sin(1.745329E-002 * rot) / 2;
In general terms, real x is assigned x minus a variable multiplied by the sine of pi/2-2 * a variable rot (rotation), all over 2.
More simply:
x = x - (var1*Sin( (pi/2)- 2(var2) ))/2
However, this declaration is causing x to occasionally become Nan (not-a-number, or non-real number). I know things like square root of a negative number and anything divided by 0 cause unreal numbers, but what coudl be causing this?
Thanks, plus rep to anyone who can help in any way.