I suspect that the problem is you're using degrees as your unit of angle, which is not what the cos function is intended for.
http://www.cplusplus.com/reference/clibrary/cmath/cos/
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 7 of 7
Threaded View
|
Click Here to Expand Forum to Full Width |