Simple Trig Question
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?
which programming language are you using?
if it's C, #include <math.h>, in C++ #include <cmath>.
if it's C, #include <math.h>, in C++ #include <cmath>.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement