• Advertisement
Sign in to follow this  

Simple Trig Question

This topic is 4799 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm working on a simple pong game that involves trigonometry. However, when I try to do something like sin(PI/6) it says it does not recognize sin. I'm guessing there is something I need to import, but I can't seem to find what that is. Can someone please help me?

Share this post


Link to post
Share on other sites
Advertisement
which programming language are you using?
if it's C, #include <math.h>, in C++ #include <cmath>.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Then use Math.sin()

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement