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?
PI and trigonometry
-
- Posts: 1186
- Joined: Fri Dec 29, 2006 12:04 am
Re: PI and trigonometry
Don't forget the namespaces.
works.
Code: Select all
irr::core::PI
"Whoops..."
Re: PI and trigonometry
Aaah, thanks! I included the core namespace now as well. I use it quite a lotrandomMesh wrote:Don't forget the namespaces.