PI and trigonometry

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Raff1
Posts: 7
Joined: Tue Nov 03, 2009 11:09 pm

PI and trigonometry

Post by Raff1 »

I took a look at irrMath.h and saw that it includes cmath and defines PI and a lot of useful functions. But I have not been able to access them. I tried to #include <irrMath.h> without success.

So what is the correct way of doing it?
randomMesh
Posts: 1186
Joined: Fri Dec 29, 2006 12:04 am

Re: PI and trigonometry

Post by randomMesh »

Don't forget the namespaces.

Code: Select all

irr::core::PI
works.
"Whoops..."
Raff1
Posts: 7
Joined: Tue Nov 03, 2009 11:09 pm

Re: PI and trigonometry

Post by Raff1 »

randomMesh wrote:Don't forget the namespaces.
Aaah, thanks! I included the core namespace now as well. I use it quite a lot :-)
Post Reply